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

Issue 187223003: Allow content layer to pass ProtocolInterceptors when we create URLRequestContext (Closed)

Created:
6 years, 9 months ago by kinuko
Modified:
6 years, 9 months ago
CC:
chromium-reviews, chrome-apps-syd-reviews_chromium.org, tim+watch_chromium.org, cbentzel+watch_chromium.org, jam, tfarina, haitaol+watch_chromium.org, joi+watch-content_chromium.org, darin-cc_chromium.org, android-webview-reviews_chromium.org, jochen+watch_chromium.org, maniscalco+watch_chromium.org, serviceworker-reviews, willchan no longer on Chromium, miket_OOO, michaeln
Visibility:
Public.

Description

Allow content layer to pass ProtocolInterceptors when we create URLRequestContext Currently we pass protocol_handlers that belong to content layer in StoragePartitionImplMap when we create URLRequestContexts for storage partitions. This patch also allows content layer to pass additional protocol interceptors, so that content modules / web platform modules (namely, ServiceWorker) can insert its own protocol interceptors. *** Most changes are just for plumbing to pass through one more arg *** * The additional protocol interceptors are created in: content/browser/storage_partition_impl_map.cc (where we also create protocol_handlers for content modules, e.g. blob, filesystem etc) * which is passed to: ChromeContentBrowserClient::CreateRequestContext -> Profile -> ProfileIOData, and then * chained to the URLJobFactory for a newly created URLRequestContext in ProfileIOData::SetUpJobFactoryDefaults(). BUG=349319 Committed: https://src.chromium.org/viewvc/chrome?view=rev&revision=256055

Patch Set 1 : -SW code #

Patch Set 2 : build fix #

Patch Set 3 : build fix #

Patch Set 4 : #

Total comments: 16

Patch Set 5 : #

Total comments: 4
Unified diffs Side-by-side diffs Delta from patch set Stats (+341 lines, -182 lines) Patch
M android_webview/browser/aw_content_browser_client.h View 1 chunk +4 lines, -2 lines 0 comments Download
M android_webview/browser/aw_content_browser_client.cc View 1 2 3 4 2 chunks +7 lines, -4 lines 0 comments Download
M apps/shell/browser/shell_content_browser_client.h View 1 1 chunk +2 lines, -1 line 0 comments Download
M apps/shell/browser/shell_content_browser_client.cc View 1 2 3 2 chunks +4 lines, -4 lines 0 comments Download
M ash/shell/content_client/shell_content_browser_client.h View 1 1 chunk +2 lines, -1 line 0 comments Download
M ash/shell/content_client/shell_content_browser_client.cc View 1 1 chunk +4 lines, -2 lines 0 comments Download
M chrome/browser/chrome_content_browser_client.h View 1 chunk +4 lines, -2 lines 0 comments Download
M chrome/browser/chrome_content_browser_client.cc View 1 2 3 4 2 chunks +11 lines, -6 lines 0 comments Download
M chrome/browser/net/chrome_url_request_context.h View 2 chunks +4 lines, -2 lines 0 comments Download
M chrome/browser/net/chrome_url_request_context.cc View 1 2 6 chunks +24 lines, -14 lines 0 comments Download
M chrome/browser/profiles/off_the_record_profile_impl.h View 1 chunk +4 lines, -2 lines 0 comments Download
M chrome/browser/profiles/off_the_record_profile_impl.cc View 1 2 3 4 2 chunks +13 lines, -7 lines 0 comments Download
M chrome/browser/profiles/off_the_record_profile_io_data.h View 1 2 3 4 4 chunks +19 lines, -13 lines 0 comments Download
M chrome/browser/profiles/off_the_record_profile_io_data.cc View 1 2 9 chunks +26 lines, -14 lines 0 comments Download
M chrome/browser/profiles/profile.h View 2 chunks +4 lines, -2 lines 0 comments Download
M chrome/browser/profiles/profile_impl.h View 1 chunk +4 lines, -2 lines 0 comments Download
M chrome/browser/profiles/profile_impl.cc View 1 2 3 4 2 chunks +13 lines, -7 lines 0 comments Download
M chrome/browser/profiles/profile_impl_io_data.h View 1 2 3 4 3 chunks +21 lines, -15 lines 0 comments Download
M chrome/browser/profiles/profile_impl_io_data.cc View 1 2 3 4 8 chunks +28 lines, -17 lines 0 comments Download
M chrome/browser/profiles/profile_io_data.h View 1 2 6 chunks +16 lines, -11 lines 0 comments Download
M chrome/browser/profiles/profile_io_data.cc View 1 2 3 4 5 chunks +27 lines, -12 lines 0 comments Download
M chrome/browser/ui/app_list/test/fake_profile.h View 1 chunk +4 lines, -2 lines 4 comments Download
M chrome/browser/ui/app_list/test/fake_profile.cc View 2 chunks +4 lines, -2 lines 0 comments Download
M chrome/browser/ui/sync/one_click_signin_helper_unittest.cc View 1 2 3 4 3 chunks +14 lines, -9 lines 0 comments Download
M chrome/test/base/testing_profile.h View 2 chunks +4 lines, -2 lines 0 comments Download
M chrome/test/base/testing_profile.cc View 2 chunks +4 lines, -2 lines 0 comments Download
M content/browser/storage_partition_impl_map.cc View 1 2 1 chunk +7 lines, -3 lines 0 comments Download
M content/public/browser/content_browser_client.h View 3 chunks +8 lines, -2 lines 0 comments Download
M content/public/browser/content_browser_client.cc View 2 chunks +4 lines, -2 lines 0 comments Download
M content/shell/browser/shell_browser_context.h View 1 chunk +4 lines, -2 lines 0 comments Download
M content/shell/browser/shell_browser_context.cc View 1 2 3 chunks +8 lines, -5 lines 0 comments Download
M content/shell/browser/shell_content_browser_client.h View 1 chunk +4 lines, -2 lines 0 comments Download
M content/shell/browser/shell_content_browser_client.cc View 1 2 2 chunks +10 lines, -4 lines 0 comments Download
M content/shell/browser/shell_url_request_context_getter.h View 2 chunks +2 lines, -0 lines 0 comments Download
M content/shell/browser/shell_url_request_context_getter.cc View 1 2 3 4 2 chunks +17 lines, -2 lines 0 comments Download
M ui/views/examples/content_client/examples_content_browser_client.h View 1 1 chunk +2 lines, -1 line 0 comments Download
M ui/views/examples/content_client/examples_content_browser_client.cc View 1 1 chunk +4 lines, -2 lines 0 comments Download

Messages

Total messages: 28 (0 generated)
kinuko
(This patch was an outcome of discussion for request interception handling in https://codereview.chromium.org/177733003/) The patch ...
6 years, 9 months ago (2014-03-05 05:58:34 UTC) #1
Avi (use Gerrit)
I have no idea if passing around a bunch of interceptors is the right thing ...
6 years, 9 months ago (2014-03-05 16:40:31 UTC) #2
kinuko
Per TODOs (and crbug.com/159193) it looks URLRequestContext getters are planned to be moved into StoragePartition, ...
6 years, 9 months ago (2014-03-06 02:30:00 UTC) #3
mkosiba (inactive)
https://codereview.chromium.org/187223003/diff/90001/android_webview/browser/aw_content_browser_client.cc File android_webview/browser/aw_content_browser_client.cc (right): https://codereview.chromium.org/187223003/diff/90001/android_webview/browser/aw_content_browser_client.cc#newcode215 android_webview/browser/aw_content_browser_client.cc:215: content::ProtocolHandlerScopedVector protocol_interceptors) { are we supposed to hook these ...
6 years, 9 months ago (2014-03-06 16:13:48 UTC) #4
mmenke
I'm the right guy for the profile changes. profile/ and browser/net LGTM. Also looked over ...
6 years, 9 months ago (2014-03-06 19:28:21 UTC) #5
michaeln
https://codereview.chromium.org/187223003/diff/90001/chrome/browser/profiles/profile_impl_io_data.cc File chrome/browser/profiles/profile_impl_io_data.cc (right): https://codereview.chromium.org/187223003/diff/90001/chrome/browser/profiles/profile_impl_io_data.cc#newcode615 chrome/browser/profiles/profile_impl_io_data.cc:615: // TODO TODOTODO_kinuko odd todo?
6 years, 9 months ago (2014-03-06 20:27:37 UTC) #6
kinuko
Thanks, addressed comments. https://codereview.chromium.org/187223003/diff/90001/android_webview/browser/aw_content_browser_client.cc File android_webview/browser/aw_content_browser_client.cc (right): https://codereview.chromium.org/187223003/diff/90001/android_webview/browser/aw_content_browser_client.cc#newcode215 android_webview/browser/aw_content_browser_client.cc:215: content::ProtocolHandlerScopedVector protocol_interceptors) { On 2014/03/06 16:13:49, ...
6 years, 9 months ago (2014-03-07 08:25:01 UTC) #7
kinuko
(moving ajwong@ from cc to reviewers to hear his opinion on this.) ajwong@: We want ...
6 years, 9 months ago (2014-03-07 08:38:36 UTC) #8
awong
I'm okay with the ContentBrowserClient change. As you said, nothing's happening with URLRequestContext and StoragePartition ...
6 years, 9 months ago (2014-03-07 16:32:43 UTC) #9
kinuko
On 2014/03/07 16:32:43, awong wrote: > I'm okay with the ContentBrowserClient change. As you said, ...
6 years, 9 months ago (2014-03-07 17:02:51 UTC) #10
kinuko
mkosiba@: could you do owner review for android_webview/ changes? kalman@: could you do owner review ...
6 years, 9 months ago (2014-03-07 17:06:18 UTC) #11
awong
Guess I should say LGTM on the URLRequestContext creation stuff. On Fri, Mar 7, 2014 ...
6 years, 9 months ago (2014-03-07 17:15:13 UTC) #12
sky
https://codereview.chromium.org/187223003/diff/110001/chrome/browser/ui/app_list/test/fake_profile.h File chrome/browser/ui/app_list/test/fake_profile.h (right): https://codereview.chromium.org/187223003/diff/110001/chrome/browser/ui/app_list/test/fake_profile.h#newcode92 chrome/browser/ui/app_list/test/fake_profile.h:92: content::ProtocolHandlerScopedVector protocol_interceptors) OVERRIDE; Why aren't you passing a const& ...
6 years, 9 months ago (2014-03-07 17:35:40 UTC) #13
not at google - send to devlin
apps plumbing lgtm
6 years, 9 months ago (2014-03-07 17:36:43 UTC) #14
sky
https://codereview.chromium.org/187223003/diff/110001/chrome/browser/ui/app_list/test/fake_profile.h File chrome/browser/ui/app_list/test/fake_profile.h (right): https://codereview.chromium.org/187223003/diff/110001/chrome/browser/ui/app_list/test/fake_profile.h#newcode92 chrome/browser/ui/app_list/test/fake_profile.h:92: content::ProtocolHandlerScopedVector protocol_interceptors) OVERRIDE; On 2014/03/07 17:35:41, sky wrote: > ...
6 years, 9 months ago (2014-03-07 17:37:11 UTC) #15
mkosiba (inactive)
android_webview/ LGTM
6 years, 9 months ago (2014-03-07 17:48:20 UTC) #16
mmenke
https://codereview.chromium.org/187223003/diff/110001/chrome/browser/ui/app_list/test/fake_profile.h File chrome/browser/ui/app_list/test/fake_profile.h (right): https://codereview.chromium.org/187223003/diff/110001/chrome/browser/ui/app_list/test/fake_profile.h#newcode92 chrome/browser/ui/app_list/test/fake_profile.h:92: content::ProtocolHandlerScopedVector protocol_interceptors) OVERRIDE; On 2014/03/07 17:37:12, sky wrote: > ...
6 years, 9 months ago (2014-03-07 17:53:50 UTC) #17
kinuko
https://codereview.chromium.org/187223003/diff/110001/chrome/browser/ui/app_list/test/fake_profile.h File chrome/browser/ui/app_list/test/fake_profile.h (right): https://codereview.chromium.org/187223003/diff/110001/chrome/browser/ui/app_list/test/fake_profile.h#newcode92 chrome/browser/ui/app_list/test/fake_profile.h:92: content::ProtocolHandlerScopedVector protocol_interceptors) OVERRIDE; On 2014/03/07 17:53:51, mmenke wrote: > ...
6 years, 9 months ago (2014-03-08 03:37:43 UTC) #18
sky
Ok, LGTM
6 years, 9 months ago (2014-03-10 13:34:05 UTC) #19
kinuko
On 2014/03/10 13:34:05, sky wrote: > Ok, LGTM Thanks!
6 years, 9 months ago (2014-03-10 13:39:22 UTC) #20
kinuko
The CQ bit was checked by kinuko@chromium.org
6 years, 9 months ago (2014-03-10 13:39:29 UTC) #21
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/kinuko@chromium.org/187223003/110001
6 years, 9 months ago (2014-03-10 13:39:46 UTC) #22
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/kinuko@chromium.org/187223003/110001
6 years, 9 months ago (2014-03-10 14:24:36 UTC) #23
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/kinuko@chromium.org/187223003/110001
6 years, 9 months ago (2014-03-10 15:42:07 UTC) #24
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/kinuko@chromium.org/187223003/110001
6 years, 9 months ago (2014-03-10 17:38:05 UTC) #25
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/kinuko@chromium.org/187223003/110001
6 years, 9 months ago (2014-03-10 21:27:26 UTC) #26
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/kinuko@chromium.org/187223003/110001
6 years, 9 months ago (2014-03-10 22:00:33 UTC) #27
commit-bot: I haz the power
6 years, 9 months ago (2014-03-10 22:57:13 UTC) #28
Message was sent while issue was closed.
Change committed as 256055

Powered by Google App Engine
This is Rietveld 408576698