Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(2)

Issue 284123004: [android_webview] Add more params to request intercepting. (Closed)

Created:
6 years, 7 months ago by mkosiba (inactive)
Modified:
6 years, 6 months ago
CC:
chromium-reviews, cbentzel+watch_chromium.org, android-webview-reviews_chromium.org
Visibility:
Public.

Description

[android_webview] Add more params to request intercepting. This adds the following to the shouldInterceptRequest params: - isMainFrame - hasUserGesture - method - headers This adds the following to InterceptedRequestData: - status code - response phrase - headers BUG=387086 android_webview-only CL, trybots are happy. NOTRY=true Committed: https://src.chromium.org/viewvc/chrome?view=rev&revision=278806

Patch Set 1 #

Total comments: 5

Patch Set 2 : #

Patch Set 3 : #

Total comments: 14

Patch Set 4 : address feedback #

Patch Set 5 : rename #

Patch Set 6 : update findbugs with new name #

Patch Set 7 : add aosp change #

Patch Set 8 : fix accidentally broken test #

Unified diffs Side-by-side diffs Delta from patch set Stats (+727 lines, -449 lines) Patch
M android_webview/android_webview.gyp View 1 2 3 4 2 chunks +2 lines, -2 lines 0 comments Download
M android_webview/browser/aw_contents_io_thread_client.h View 1 2 3 4 2 chunks +2 lines, -2 lines 0 comments Download
M android_webview/browser/aw_request_interceptor.h View 1 2 3 4 2 chunks +2 lines, -2 lines 0 comments Download
M android_webview/browser/aw_request_interceptor.cc View 1 2 3 4 4 chunks +12 lines, -12 lines 0 comments Download
A + android_webview/browser/aw_web_resource_response.h View 1 2 3 4 2 chunks +17 lines, -8 lines 0 comments Download
A + android_webview/browser/aw_web_resource_response.cc View 1 2 3 4 4 chunks +30 lines, -12 lines 0 comments Download
M android_webview/browser/intercepted_request_data.h View 1 2 3 4 1 chunk +0 lines, -51 lines 0 comments Download
M android_webview/browser/intercepted_request_data.cc View 1 2 3 4 1 chunk +0 lines, -70 lines 0 comments Download
M android_webview/browser/net/android_stream_reader_url_request_job.h View 1 2 3 2 chunks +4 lines, -0 lines 0 comments Download
M android_webview/browser/net/android_stream_reader_url_request_job.cc View 1 2 3 1 chunk +4 lines, -0 lines 0 comments Download
M android_webview/browser/net/android_stream_reader_url_request_job_unittest.cc View 1 2 3 4 chunks +64 lines, -0 lines 0 comments Download
M android_webview/buildbot/aosp_manifest.xml View 1 2 3 4 5 6 1 chunk +1 line, -1 line 0 comments Download
M android_webview/java/src/org/chromium/android_webview/AwContents.java View 1 2 3 4 3 chunks +12 lines, -11 lines 0 comments Download
M android_webview/java/src/org/chromium/android_webview/AwContentsClient.java View 1 2 3 4 2 chunks +19 lines, -1 line 0 comments Download
M android_webview/java/src/org/chromium/android_webview/AwContentsIoThreadClient.java View 1 2 3 4 2 chunks +32 lines, -10 lines 0 comments Download
A android_webview/java/src/org/chromium/android_webview/AwWebResourceResponse.java View 1 2 3 4 1 chunk +83 lines, -0 lines 0 comments Download
M android_webview/java/src/org/chromium/android_webview/DefaultVideoPosterRequestHandler.java View 1 2 3 4 1 chunk +3 lines, -3 lines 0 comments Download
M android_webview/java/src/org/chromium/android_webview/InterceptedRequestData.java View 1 2 3 4 1 chunk +0 lines, -41 lines 0 comments Download
M android_webview/javatests/src/org/chromium/android_webview/test/AwContentsClientGetDefaultVideoPosterTest.java View 1 2 3 4 3 chunks +3 lines, -3 lines 0 comments Download
M android_webview/javatests/src/org/chromium/android_webview/test/AwContentsClientShouldInterceptRequestTest.java View 1 2 3 4 22 chunks +196 lines, -57 lines 0 comments Download
M android_webview/javatests/src/org/chromium/android_webview/test/AwContentsClientShouldOverrideUrlLoadingTest.java View 1 2 3 4 5 6 7 18 chunks +26 lines, -32 lines 0 comments Download
M android_webview/javatests/src/org/chromium/android_webview/test/AwSettingsTest.java View 1 2 3 4 2 chunks +5 lines, -3 lines 0 comments Download
M android_webview/javatests/src/org/chromium/android_webview/test/CookieManagerStartupTest.java View 1 2 3 4 2 chunks +3 lines, -2 lines 0 comments Download
M android_webview/javatests/src/org/chromium/android_webview/test/util/CommonResources.java View 1 2 3 4 5 6 7 1 chunk +18 lines, -0 lines 0 comments Download
M android_webview/native/android_protocol_handler.cc View 1 2 3 2 chunks +10 lines, -0 lines 0 comments Download
M android_webview/native/android_webview_jni_registrar.cc View 1 2 3 4 2 chunks +2 lines, -2 lines 0 comments Download
M android_webview/native/aw_contents_io_thread_client_impl.h View 1 2 3 4 3 chunks +3 lines, -2 lines 0 comments Download
M android_webview/native/aw_contents_io_thread_client_impl.cc View 1 2 3 4 6 chunks +45 lines, -13 lines 0 comments Download
A + android_webview/native/aw_web_resource_response_impl.h View 1 2 3 4 1 chunk +17 lines, -7 lines 0 comments Download
A android_webview/native/aw_web_resource_response_impl.cc View 1 2 3 4 1 chunk +104 lines, -0 lines 0 comments Download
M android_webview/native/intercepted_request_data_impl.h View 1 2 3 4 1 chunk +0 lines, -38 lines 0 comments Download
M android_webview/native/intercepted_request_data_impl.cc View 1 2 3 4 1 chunk +0 lines, -59 lines 0 comments Download
M android_webview/native/webview_native.gyp View 1 2 3 4 2 chunks +3 lines, -3 lines 0 comments Download
M android_webview/test/shell/src/org/chromium/android_webview/test/NullContentsClient.java View 1 2 3 4 2 chunks +3 lines, -2 lines 0 comments Download
M build/android/findbugs_filter/findbugs_known_bugs.txt View 1 2 3 4 5 1 chunk +2 lines, -0 lines 0 comments Download

Messages

Total messages: 18 (0 generated)
mkosiba (inactive)
PTAL
6 years, 7 months ago (2014-05-15 12:59:52 UTC) #1
agrieve
https://codereview.chromium.org/284123004/diff/1/android_webview/java/src/org/chromium/android_webview/InterceptedRequestData.java File android_webview/java/src/org/chromium/android_webview/InterceptedRequestData.java (right): https://codereview.chromium.org/284123004/diff/1/android_webview/java/src/org/chromium/android_webview/InterceptedRequestData.java#newcode36 android_webview/java/src/org/chromium/android_webview/InterceptedRequestData.java:36: assert statusCode < 100 || statusCode >= 600; Is ...
6 years, 7 months ago (2014-05-15 14:01:18 UTC) #2
mnaganov (inactive)
Looks good in general, I have the same question as Andy. https://codereview.chromium.org/284123004/diff/1/android_webview/browser/intercepted_request_data.h File android_webview/browser/intercepted_request_data.h (right): ...
6 years, 7 months ago (2014-05-15 14:23:16 UTC) #3
mkosiba (inactive)
https://codereview.chromium.org/284123004/diff/1/android_webview/browser/intercepted_request_data.h File android_webview/browser/intercepted_request_data.h (right): https://codereview.chromium.org/284123004/diff/1/android_webview/browser/intercepted_request_data.h#newcode37 android_webview/browser/intercepted_request_data.h:37: // returned |headers| was not updated. On 2014/05/15 14:23:17, ...
6 years, 7 months ago (2014-05-15 14:31:49 UTC) #4
mnaganov (inactive)
lgtm https://codereview.chromium.org/284123004/diff/1/android_webview/java/src/org/chromium/android_webview/InterceptedRequestData.java File android_webview/java/src/org/chromium/android_webview/InterceptedRequestData.java (right): https://codereview.chromium.org/284123004/diff/1/android_webview/java/src/org/chromium/android_webview/InterceptedRequestData.java#newcode36 android_webview/java/src/org/chromium/android_webview/InterceptedRequestData.java:36: assert statusCode < 100 || statusCode >= 600; ...
6 years, 7 months ago (2014-05-15 14:55:25 UTC) #5
mnaganov (inactive)
One more remark, though: I guess, you should create a Chromium bug with some description ...
6 years, 7 months ago (2014-05-15 14:56:26 UTC) #6
benm (inactive)
On 2014/05/15 14:56:26, Mikhail Naganov (Cr) wrote: > One more remark, though: I guess, you ...
6 years, 7 months ago (2014-05-15 15:55:29 UTC) #7
benm (inactive)
On 2014/05/15 15:55:29, benm wrote: > On 2014/05/15 14:56:26, Mikhail Naganov (Cr) wrote: > > ...
6 years, 7 months ago (2014-05-15 16:17:27 UTC) #8
benm (inactive)
https://codereview.chromium.org/284123004/diff/40001/android_webview/browser/net/android_stream_reader_url_request_job_unittest.cc File android_webview/browser/net/android_stream_reader_url_request_job_unittest.cc (right): https://codereview.chromium.org/284123004/diff/40001/android_webview/browser/net/android_stream_reader_url_request_job_unittest.cc#newcode134 android_webview/browser/net/android_stream_reader_url_request_job_unittest.cc:134: const int HeaderAlteringStreamReaderDelegate::kResponseCode = 401; are there any headers ...
6 years, 7 months ago (2014-05-15 16:17:39 UTC) #9
mkosiba (inactive)
On 2014/05/15 16:17:27, benm wrote: > On 2014/05/15 15:55:29, benm wrote: > > On 2014/05/15 ...
6 years, 7 months ago (2014-05-15 16:50:43 UTC) #10
mkosiba (inactive)
https://codereview.chromium.org/284123004/diff/40001/android_webview/browser/net/android_stream_reader_url_request_job_unittest.cc File android_webview/browser/net/android_stream_reader_url_request_job_unittest.cc (right): https://codereview.chromium.org/284123004/diff/40001/android_webview/browser/net/android_stream_reader_url_request_job_unittest.cc#newcode134 android_webview/browser/net/android_stream_reader_url_request_job_unittest.cc:134: const int HeaderAlteringStreamReaderDelegate::kResponseCode = 401; On 2014/05/15 16:17:40, benm ...
6 years, 7 months ago (2014-05-15 17:03:20 UTC) #11
benm (inactive)
Got it. Sorry I think I was mixing up request/response headers when I looked last ...
6 years, 7 months ago (2014-05-15 17:43:15 UTC) #12
mkosiba (inactive)
https://codereview.chromium.org/284123004/diff/40001/android_webview/browser/intercepted_request_data.h File android_webview/browser/intercepted_request_data.h (right): https://codereview.chromium.org/284123004/diff/40001/android_webview/browser/intercepted_request_data.h#newcode38 android_webview/browser/intercepted_request_data.h:38: virtual bool GetHeaders( On 2014/05/15 17:43:15, benm wrote: > ...
6 years, 6 months ago (2014-06-19 17:54:15 UTC) #13
benm (inactive)
lgtm thanks!
6 years, 6 months ago (2014-06-20 12:53:19 UTC) #14
benm (inactive)
On 2014/06/20 12:53:19, benm wrote: > lgtm > > thanks! (please don't forget an external ...
6 years, 6 months ago (2014-06-20 12:54:35 UTC) #15
mkosiba (inactive)
The CQ bit was checked by mkosiba@chromium.org
6 years, 6 months ago (2014-06-20 19:55:31 UTC) #16
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/mkosiba@chromium.org/284123004/130001
6 years, 6 months ago (2014-06-20 19:57:10 UTC) #17
commit-bot: I haz the power
6 years, 6 months ago (2014-06-20 20:00:01 UTC) #18
Message was sent while issue was closed.
Change committed as 278806

Powered by Google App Engine
This is Rietveld 408576698