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

Issue 282103004: Rename ProtocolInterceptJobFactory and make it not use ProtocolHandlers. (Closed)

Created:
6 years, 7 months ago by mmenke
Modified:
6 years, 6 months ago
CC:
chromium-reviews, chrome-apps-syd-reviews_chromium.org, tim+watch_chromium.org, cbentzel+watch_chromium.org, jam, tzik, tfarina, serviceworker-reviews, haitaol+watch_chromium.org, jsbell+serviceworker_chromium.org, nhiroki, jochen+watch_chromium.org, darin-cc_chromium.org, michaeln, horo+watch_chromium.org, kinuko+watch, alecflett+watch_chromium.org, maniscalco+watch_chromium.org
Visibility:
Public.

Description

Rename ProtocolInterceptJobFactory and make it not use ProtocolHandlers. ProtocolHandlers are intended to handle all requests for a particular scheme, while UrlRequestInterceptors are intended to sit in front of ProtocolHandlers, and optionally take over handling of any request, regardless of scheme. Separating the classes removes some ambiguity and weirdness, particularly when passing a bunch of interceptors all over the place from content/ to chrome/ during initialization. BUG=373800 Committed: https://src.chromium.org/viewvc/chrome?view=rev&revision=273874

Patch Set 1 #

Patch Set 2 : Finally fix android? #

Patch Set 3 : Fix stuff #

Patch Set 4 : Small cleanups, sync #

Patch Set 5 : Merge #

Patch Set 6 : Merge #

Patch Set 7 : Fix Merge #

Total comments: 4

Patch Set 8 : Response to comments #

Patch Set 9 : Merge #

Total comments: 2

Patch Set 10 : Fix comment #

Total comments: 8

Patch Set 11 : Response to jam's comments (And a merge) #

Unified diffs Side-by-side diffs Delta from patch set Stats (+368 lines, -420 lines) Patch
M android_webview/browser/aw_content_browser_client.h View 1 2 3 4 5 2 chunks +2 lines, -3 lines 0 comments Download
M android_webview/browser/aw_content_browser_client.cc View 1 2 3 4 5 6 7 8 9 10 2 chunks +5 lines, -3 lines 0 comments Download
M android_webview/browser/aw_request_interceptor.h View 1 2 chunks +4 lines, -4 lines 0 comments Download
M android_webview/browser/aw_request_interceptor.cc View 1 1 chunk +1 line, -1 line 0 comments Download
M android_webview/browser/net/aw_url_request_context_getter.cc View 1 2 3 4 5 6 7 8 9 10 2 chunks +17 lines, -16 lines 0 comments Download
M android_webview/browser/net/init_native_callback.h View 1 2 chunks +5 lines, -5 lines 0 comments Download
M android_webview/native/android_protocol_handler.h View 1 2 3 1 chunk +4 lines, -7 lines 0 comments Download
M android_webview/native/android_protocol_handler.cc View 1 2 3 4 5 6 7 8 9 10 9 chunks +33 lines, -31 lines 0 comments Download
M android_webview/native/net_init_native_callback.cc View 1 1 chunk +7 lines, -8 lines 0 comments Download
M apps/shell/browser/shell_content_browser_client.h View 1 1 chunk +1 line, -1 line 0 comments Download
M apps/shell/browser/shell_content_browser_client.cc View 1 2 3 4 5 6 7 8 9 10 2 chunks +2 lines, -2 lines 0 comments Download
M ash/shell/content_client/shell_content_browser_client.h View 1 1 chunk +1 line, -1 line 0 comments Download
M ash/shell/content_client/shell_content_browser_client.cc View 1 1 chunk +2 lines, -2 lines 0 comments Download
M chrome/browser/chrome_content_browser_client.h View 1 2 3 4 5 1 chunk +2 lines, -2 lines 0 comments Download
M chrome/browser/chrome_content_browser_client.cc View 1 2 3 4 5 6 7 8 9 10 2 chunks +4 lines, -4 lines 0 comments Download
M chrome/browser/net/chrome_url_request_context.h View 2 chunks +2 lines, -2 lines 0 comments Download
M chrome/browser/net/chrome_url_request_context.cc View 7 chunks +15 lines, -14 lines 0 comments Download
M chrome/browser/profiles/off_the_record_profile_impl.h View 1 2 3 4 5 6 7 8 9 10 1 chunk +2 lines, -2 lines 0 comments Download
M chrome/browser/profiles/off_the_record_profile_impl.cc View 1 2 3 4 5 6 7 8 9 10 2 chunks +4 lines, -4 lines 0 comments Download
M chrome/browser/profiles/off_the_record_profile_io_data.h View 5 chunks +6 lines, -5 lines 0 comments Download
M chrome/browser/profiles/off_the_record_profile_io_data.cc View 1 2 3 11 chunks +11 lines, -12 lines 0 comments Download
M chrome/browser/profiles/profile.h View 1 2 3 3 chunks +2 lines, -3 lines 0 comments Download
M chrome/browser/profiles/profile_impl.h View 1 2 3 4 5 6 7 8 9 10 1 chunk +2 lines, -2 lines 0 comments Download
M chrome/browser/profiles/profile_impl.cc View 1 2 3 4 5 6 7 8 9 10 2 chunks +4 lines, -4 lines 0 comments Download
M chrome/browser/profiles/profile_impl_io_data.h View 5 chunks +6 lines, -5 lines 0 comments Download
M chrome/browser/profiles/profile_impl_io_data.cc View 1 2 3 10 chunks +11 lines, -12 lines 0 comments Download
M chrome/browser/profiles/profile_io_data.h View 1 2 3 6 chunks +11 lines, -7 lines 0 comments Download
M chrome/browser/profiles/profile_io_data.cc View 1 2 3 4 5 6 7 8 9 10 8 chunks +16 lines, -15 lines 0 comments Download
M chrome/browser/ui/app_list/test/fake_profile.h View 1 2 3 4 5 6 7 8 9 10 1 chunk +2 lines, -2 lines 0 comments Download
M chrome/browser/ui/app_list/test/fake_profile.cc View 1 2 3 4 5 6 7 8 9 10 2 chunks +2 lines, -2 lines 0 comments Download
M chrome/browser/ui/sync/one_click_signin_helper_unittest.cc View 1 2 3 4 3 chunks +3 lines, -3 lines 0 comments Download
M chrome/test/base/testing_profile.h View 1 2 3 4 5 6 7 8 9 10 2 chunks +2 lines, -2 lines 0 comments Download
M chrome/test/base/testing_profile.cc View 1 2 3 4 5 6 7 8 9 10 2 chunks +2 lines, -2 lines 0 comments Download
M content/browser/service_worker/service_worker_request_handler.h View 1 2 3 4 5 6 7 8 9 10 2 chunks +2 lines, -2 lines 0 comments Download
M content/browser/service_worker/service_worker_request_handler.cc View 1 2 3 4 5 6 7 8 9 10 3 chunks +5 lines, -4 lines 0 comments Download
M content/browser/storage_partition_impl_map.cc View 1 2 3 4 5 6 7 8 9 10 3 chunks +4 lines, -4 lines 0 comments Download
M content/public/browser/content_browser_client.h View 1 2 3 4 5 6 7 8 9 10 9 chunks +12 lines, -11 lines 0 comments Download
M content/public/browser/content_browser_client.cc View 1 2 3 4 5 6 7 8 9 10 4 chunks +5 lines, -5 lines 0 comments Download
M content/shell/browser/shell_browser_context.h View 1 2 3 4 5 6 7 8 9 10 1 chunk +2 lines, -2 lines 0 comments Download
M content/shell/browser/shell_browser_context.cc View 1 2 3 4 5 6 7 8 9 10 3 chunks +3 lines, -3 lines 0 comments Download
M content/shell/browser/shell_content_browser_client.h View 1 2 3 4 5 6 7 8 9 10 2 chunks +3 lines, -3 lines 0 comments Download
M content/shell/browser/shell_content_browser_client.cc View 1 2 3 4 5 6 7 8 9 10 4 chunks +6 lines, -7 lines 0 comments Download
M content/shell/browser/shell_url_request_context_getter.h View 1 2 3 4 5 6 7 8 9 10 2 chunks +2 lines, -2 lines 0 comments Download
M content/shell/browser/shell_url_request_context_getter.cc View 1 2 3 4 5 6 7 8 9 10 4 chunks +11 lines, -13 lines 0 comments Download
M net/net.gypi View 1 2 3 4 5 6 7 8 2 chunks +4 lines, -2 lines 0 comments Download
D net/url_request/protocol_intercept_job_factory.h View 1 2 3 1 chunk +0 lines, -53 lines 0 comments Download
D net/url_request/protocol_intercept_job_factory.cc View 1 chunk +0 lines, -47 lines 0 comments Download
A + net/url_request/url_request_intercepting_job_factory.h View 1 2 3 1 chunk +58 lines, -53 lines 0 comments Download
A + net/url_request/url_request_intercepting_job_factory.cc View 1 chunk +13 lines, -11 lines 0 comments Download
A net/url_request/url_request_interceptor.h View 1 2 3 4 5 6 7 1 chunk +37 lines, -0 lines 0 comments Download
A + net/url_request/url_request_interceptor.cc View 1 2 3 1 chunk +5 lines, -7 lines 0 comments Download
M ui/views_content_client/views_content_browser_client.h View 1 2 3 4 5 1 chunk +1 line, -1 line 0 comments Download
M ui/views_content_client/views_content_browser_client.cc View 1 2 3 4 5 6 1 chunk +2 lines, -2 lines 0 comments Download

Messages

Total messages: 18 (0 generated)
michaeln
hooray for the distinction between the two :)
6 years, 7 months ago (2014-05-15 19:20:18 UTC) #1
mmenke
PTAL. android_protocol_handler.h should probably be renamed, but I think this CL is already more than ...
6 years, 7 months ago (2014-05-21 19:10:11 UTC) #2
mmenke
pauljensen: Ping!
6 years, 7 months ago (2014-05-27 15:39:39 UTC) #3
pauljensen
I'll take a look soon, probably tomorrow morning. I didn't see the prior emails, they ...
6 years, 7 months ago (2014-05-27 18:53:50 UTC) #4
mmenke
On 2014/05/27 18:53:50, pauljensen wrote: > I'll take a look soon, probably tomorrow morning. I ...
6 years, 7 months ago (2014-05-27 18:54:57 UTC) #5
pauljensen
lgtm. I'm not a huge fan of the name URLRequestInterceptor as it's quite similar to ...
6 years, 6 months ago (2014-05-28 12:03:49 UTC) #6
mmenke
Thanks for catching those! https://codereview.chromium.org/282103004/diff/320001/net/url_request/url_request_interceptor.h File net/url_request/url_request_interceptor.h (right): https://codereview.chromium.org/282103004/diff/320001/net/url_request/url_request_interceptor.h#newcode19 net/url_request/url_request_interceptor.h:19: // requests's scheme. On 2014/05/28 ...
6 years, 6 months ago (2014-05-28 15:08:14 UTC) #7
mmenke
Adding owners reviewers. In most files this just substitutes some uses of ProtocolHandler with the ...
6 years, 6 months ago (2014-05-28 15:48:59 UTC) #8
sky
LGTM
6 years, 6 months ago (2014-05-28 16:06:17 UTC) #9
mkosiba (inactive)
android_webview LGTM https://codereview.chromium.org/282103004/diff/360001/android_webview/browser/net/aw_url_request_context_getter.cc File android_webview/browser/net/aw_url_request_context_getter.cc (right): https://codereview.chromium.org/282103004/diff/360001/android_webview/browser/net/aw_url_request_context_getter.cc#newcode135 android_webview/browser/net/aw_url_request_context_getter.cc:135: // in the order in which they ...
6 years, 6 months ago (2014-05-28 16:25:53 UTC) #10
mmenke
Thanks! https://codereview.chromium.org/282103004/diff/360001/android_webview/browser/net/aw_url_request_context_getter.cc File android_webview/browser/net/aw_url_request_context_getter.cc (right): https://codereview.chromium.org/282103004/diff/360001/android_webview/browser/net/aw_url_request_context_getter.cc#newcode135 android_webview/browser/net/aw_url_request_context_getter.cc:135: // in the order in which they appear ...
6 years, 6 months ago (2014-05-28 16:29:39 UTC) #11
James Cook
apps/ and ash/ LGTM
6 years, 6 months ago (2014-05-28 18:28:53 UTC) #12
mmenke
jam: Mind reviewing content changes? This is basically just replacing one use of ProtocolHandlers with ...
6 years, 6 months ago (2014-05-29 21:44:51 UTC) #13
jam
content lgtm with nits https://codereview.chromium.org/282103004/diff/370001/content/public/browser/content_browser_client.h File content/public/browser/content_browser_client.h (right): https://codereview.chromium.org/282103004/diff/370001/content/public/browser/content_browser_client.h#newcode116 content/public/browser/content_browser_client.h:116: // A scoped vector of ...
6 years, 6 months ago (2014-05-30 01:19:14 UTC) #14
mmenke
Thanks for the feeedback! https://codereview.chromium.org/282103004/diff/370001/content/public/browser/content_browser_client.h File content/public/browser/content_browser_client.h (right): https://codereview.chromium.org/282103004/diff/370001/content/public/browser/content_browser_client.h#newcode116 content/public/browser/content_browser_client.h:116: // A scoped vector of ...
6 years, 6 months ago (2014-05-30 14:40:21 UTC) #15
mmenke
The CQ bit was checked by mmenke@chromium.org
6 years, 6 months ago (2014-05-30 15:02:41 UTC) #16
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/mmenke@chromium.org/282103004/380001
6 years, 6 months ago (2014-05-30 15:03:16 UTC) #17
commit-bot: I haz the power
6 years, 6 months ago (2014-05-30 17:56:20 UTC) #18
Message was sent while issue was closed.
Change committed as 273874

Powered by Google App Engine
This is Rietveld 408576698