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

Issue 2874163004: Add support in the network service for different contexts. (Closed)

Created:
3 years, 7 months ago by jam
Modified:
3 years, 7 months ago
Reviewers:
Tom Sepez, ananta, scottmg
CC:
chromium-reviews, asanka, mlamouri+watch-content_chromium.org, wjmaclean, creis+watch_chromium.org, qsr+mojo_chromium.org, viettrungluu+watch_chromium.org, nasko+codewatch_chromium.org, Randy Smith (Not in Mondays), yzshen+watch_chromium.org, abarth-chromium, Aaron Boodman, darin-cc_chromium.org, loading-reviews_chromium.org, darin (slow to review), mmenke
Target Ref:
refs/heads/master
Project:
chromium
Visibility:
Public.

Description

Add support in the network service for different contexts. Now each StoragePartition has its own network context (which owns the net::URLRequestContext). The renderer connects to the network service through the browser instead of directly, which securely annotates the factory with the render process ID. BUG=720374 Review-Url: https://codereview.chromium.org/2874163004 Cr-Commit-Position: refs/heads/master@{#472101} Committed: https://chromium.googlesource.com/chromium/src/+/c190586208cdae9ddecfd8d33d5aee3fc7c4dd92

Patch Set 1 #

Patch Set 2 : fixes #

Total comments: 4

Patch Set 3 : update after r471804 #

Total comments: 6

Patch Set 4 : review comment and clang fixes #

Unified diffs Side-by-side diffs Delta from patch set Stats (+377 lines, -171 lines) Patch
M content/browser/BUILD.gn View 1 2 1 chunk +2 lines, -0 lines 0 comments Download
M content/browser/loader/navigation_url_loader_network_service.h View 1 2 2 chunks +0 lines, -6 lines 0 comments Download
M content/browser/loader/navigation_url_loader_network_service.cc View 1 2 7 chunks +7 lines, -26 lines 0 comments Download
M content/browser/renderer_host/render_process_host_impl.h View 2 chunks +4 lines, -0 lines 0 comments Download
M content/browser/renderer_host/render_process_host_impl.cc View 1 2 3 chunks +21 lines, -0 lines 0 comments Download
M content/browser/site_per_process_browsertest.cc View 1 2 4 chunks +9 lines, -3 lines 0 comments Download
M content/browser/storage_partition_impl.h View 1 2 6 chunks +24 lines, -16 lines 0 comments Download
M content/browser/storage_partition_impl.cc View 1 2 4 chunks +26 lines, -0 lines 0 comments Download
A content/browser/url_loader_factory_getter.h View 1 2 3 1 chunk +56 lines, -0 lines 0 comments Download
A content/browser/url_loader_factory_getter.cc View 1 2 3 1 chunk +49 lines, -0 lines 0 comments Download
M content/browser/webui/web_ui_url_loader_factory.cc View 1 2 6 chunks +14 lines, -17 lines 0 comments Download
M content/common/network_service.mojom View 1 chunk +28 lines, -2 lines 0 comments Download
M content/network/cache_url_loader.h View 1 chunk +1 line, -1 line 0 comments Download
M content/network/cache_url_loader.cc View 1 2 3 chunks +4 lines, -4 lines 0 comments Download
M content/network/network_context.h View 1 4 chunks +25 lines, -5 lines 0 comments Download
M content/network/network_context.cc View 1 4 chunks +30 lines, -42 lines 0 comments Download
M content/network/network_service.h View 2 chunks +10 lines, -18 lines 0 comments Download
M content/network/network_service.cc View 2 chunks +55 lines, -23 lines 0 comments Download
M content/network/network_service_url_loader_factory_impl.h View 2 chunks +3 lines, -1 line 0 comments Download
M content/network/network_service_url_loader_factory_impl.cc View 1 1 chunk +5 lines, -2 lines 0 comments Download
M content/network/url_loader_unittest.cc View 1 2 chunks +3 lines, -3 lines 0 comments Download
M content/public/app/mojo/content_renderer_manifest.json View 1 2 1 chunk +0 lines, -1 line 0 comments Download
M content/renderer/renderer_blink_platform_impl.cc View 1 2 1 chunk +1 line, -1 line 0 comments Download

Messages

Total messages: 69 (53 generated)
jam
3 years, 7 months ago (2017-05-12 21:17:08 UTC) #15
scottmg
Hrm, more thread crud. I need to clone the connector to the IO thread.
3 years, 7 months ago (2017-05-12 21:56:17 UTC) #16
jam
On 2017/05/12 21:56:17, scottmg wrote: > Hrm, more thread crud. I need to clone the ...
3 years, 7 months ago (2017-05-12 22:19:13 UTC) #19
scottmg
Took me a while to figure out how it fits together, but lgtm. On 2017/05/12 ...
3 years, 7 months ago (2017-05-12 22:27:14 UTC) #20
jam
+Tom for manifest/mojom security review (and overall if you have comments)
3 years, 7 months ago (2017-05-12 23:09:16 UTC) #23
Tom Sepez
https://codereview.chromium.org/2874163004/diff/40001/content/common/network_service.mojom File content/common/network_service.mojom (right): https://codereview.chromium.org/2874163004/diff/40001/content/common/network_service.mojom#newcode14 content/common/network_service.mojom:14: // Points to the cookie file. If null, an ...
3 years, 7 months ago (2017-05-12 23:26:34 UTC) #25
jam
https://codereview.chromium.org/2874163004/diff/40001/content/common/network_service.mojom File content/common/network_service.mojom (right): https://codereview.chromium.org/2874163004/diff/40001/content/common/network_service.mojom#newcode14 content/common/network_service.mojom:14: // Points to the cookie file. If null, an ...
3 years, 7 months ago (2017-05-13 00:01:36 UTC) #26
Tom Sepez
lgtm Ok, given my followup tasks.
3 years, 7 months ago (2017-05-15 16:06:12 UTC) #27
jam
Scott: ptal, after syncing past your change I realized that I couldn't get the URLLoaderFactory ...
3 years, 7 months ago (2017-05-16 01:48:44 UTC) #30
scottmg
lgtm (I was excited it was going to be url_loader_factory_factory, but factory_getter is more appropriate. ...
3 years, 7 months ago (2017-05-16 03:53:43 UTC) #49
jam
https://codereview.chromium.org/2874163004/diff/100001/content/browser/url_loader_factory_getter.cc File content/browser/url_loader_factory_getter.cc (right): https://codereview.chromium.org/2874163004/diff/100001/content/browser/url_loader_factory_getter.cc#newcode24 content/browser/url_loader_factory_getter.cc:24: DCHECK(BrowserThread::CurrentlyOn(BrowserThread::IO)); On 2017/05/16 03:53:43, scottmg wrote: > DCHECK_CURRENTLY_ON(BrowserThread::IO); Done. ...
3 years, 7 months ago (2017-05-16 04:08:40 UTC) #51
jam
https://codereview.chromium.org/2874163004/diff/100001/content/browser/url_loader_factory_getter.h File content/browser/url_loader_factory_getter.h (right): https://codereview.chromium.org/2874163004/diff/100001/content/browser/url_loader_factory_getter.h#newcode16 content/browser/url_loader_factory_getter.h:16: // Holds on to URLLoaderFactory for a given StoragePartition ...
3 years, 7 months ago (2017-05-16 04:08:50 UTC) #52
commit-bot: I haz the power
CQ is trying da patch. Follow status at: https://chromium-cq-status.appspot.com/v2/patch-status/codereview.chromium.org/2874163004/120001
3 years, 7 months ago (2017-05-16 04:09:51 UTC) #55
commit-bot: I haz the power
Try jobs failed on following builders: cast_shell_android on master.tryserver.chromium.android (JOB_FAILED, https://build.chromium.org/p/tryserver.chromium.android/builders/cast_shell_android/builds/268691) cast_shell_linux on master.tryserver.chromium.linux (JOB_FAILED, ...
3 years, 7 months ago (2017-05-16 04:24:21 UTC) #58
commit-bot: I haz the power
CQ is trying da patch. Follow status at: https://chromium-cq-status.appspot.com/v2/patch-status/codereview.chromium.org/2874163004/140001
3 years, 7 months ago (2017-05-16 13:47:29 UTC) #66
commit-bot: I haz the power
3 years, 7 months ago (2017-05-16 14:45:44 UTC) #69
Message was sent while issue was closed.
Committed patchset #4 (id:140001) as
https://chromium.googlesource.com/chromium/src/+/c190586208cdae9ddecfd8d33d5a...

Powered by Google App Engine
This is Rietveld 408576698