forked from chromium/chromium
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[AW NS] Implement shouldInterceptRequest callback, null response case.
Implement shouldInterceptRequest callback in Android WebView when Network Service is enabled. This CL implements the so-called null response case, i.e. when the embedder does not actualy override network traffic with custom responses. This patch also contains some modifications to the AwContentsIoThreadClient class in order to accomodate both code paths (the current code path operating with net::URLRequest and the new code path using network::ResourceRequest). Fixed tests: -AwContentsClientShouldInterceptRequestTest.testCalledForIframe -AwContentsClientShouldInterceptRequestTest.testCalledForImage -AwContentsClientShouldInterceptRequestTest.testCalledForNonexistentAsset -AwContentsClientShouldInterceptRequestTest.testCalledForNonexistentContentUrl -AwContentsClientShouldInterceptRequestTest.testCalledForNonexistentFiles -AwContentsClientShouldInterceptRequestTest.testCalledForNonexistentResource -AwContentsClientShouldInterceptRequestTest.testCalledWithCorrectHasUserGestureParam -AwContentsClientShouldInterceptRequestTest.testCalledWithCorrectHeadersParam -AwContentsClientShouldInterceptRequestTest.testCalledWithCorrectIsMainFrameParam -AwContentsClientShouldInterceptRequestTest.testCalledWithCorrectMethodParam -AwContentsClientShouldInterceptRequestTest.testCalledWithCorrectUrlParam -AwContentsClientShouldInterceptRequestTest.testDeadlock -AwContentsClientShouldInterceptRequestTest.testDoesNotCrashOnInvalidData -AwContentsClientShouldInterceptRequestTest.testOnLoadResourceCalledWithCorrectUrl BUG=893566,841556 Cq-Include-Trybots: master.tryserver.chromium.android:android_mojo Change-Id: I6872a71670d33cc6726771ffb5341df4904dfd38 Reviewed-on: https://chromium-review.googlesource.com/c/1345029 Commit-Queue: Tim Volodine <[email protected]> Reviewed-by: John Abd-El-Malek <[email protected]> Reviewed-by: Clark DuVall <[email protected]> Reviewed-by: Richard Coles <[email protected]> Cr-Commit-Position: refs/heads/master@{#610686}
- Loading branch information
Tim Volodine
authored and
Commit Bot
committed
Nov 23, 2018
1 parent
d32b6bf
commit 978fb98
Showing
5 changed files
with
40 additions
and
20 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters