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

Issue 10575014: Move process-per-site logic from BrowsingInstance to RenderProcessHost. (Closed)

Created:
8 years, 6 months ago by Charlie Reis
Modified:
8 years, 5 months ago
Reviewers:
jam, awong, sky
CC:
chromium-reviews, creis+watch_chromium.org, jochen+watch-content_chromium.org, jam, joi+watch-content_chromium.org, darin-cc_chromium.org, ajwong+watch_chromium.org
Visibility:
Public.

Description

Move process-per-site logic from BrowsingInstance to RenderProcessHost. This avoids sharing SiteInstances across different BrowsingInstances. BUG=11629 BUG=131676 TEST=See repro steps in http://crbug.com/131676. Committed: http://src.chromium.org/viewvc/chrome?view=rev&revision=144911

Patch Set 1 #

Patch Set 2 : Fix clang error. #

Patch Set 3 : Fix create and delete issues. #

Patch Set 4 : Fix merge conflicts #

Patch Set 5 : Fix unregistration. #

Patch Set 6 : Simplify, handle corner cases. #

Patch Set 7 : Fix HasProcess #

Patch Set 8 : Clean up RPHs in test. #

Total comments: 31

Patch Set 9 : Address review comments #

Patch Set 10 : Add comment. #

Total comments: 4

Patch Set 11 : John's comments, plus SupportsUserData #

Patch Set 12 : Fix unit test #

Total comments: 4

Patch Set 13 : Fix review comment. #

Unified diffs Side-by-side diffs Delta from patch set Stats (+341 lines, -208 lines) Patch
M chrome/browser/extensions/process_management_browsertest.cc View 1 2 1 chunk +2 lines, -0 lines 0 comments Download
M chrome/browser/ssl/ssl_browser_tests.cc View 1 2 3 4 5 6 7 8 2 chunks +7 lines, -1 line 0 comments Download
M chrome/browser/ui/webui/ntp/new_tab_ui_browsertest.cc View 1 2 3 4 1 chunk +5 lines, -5 lines 0 comments Download
M content/browser/browsing_instance.h View 1 2 3 4 5 4 chunks +0 lines, -36 lines 0 comments Download
M content/browser/browsing_instance.cc View 1 2 3 4 5 6 7 8 4 chunks +10 lines, -87 lines 0 comments Download
M content/browser/renderer_host/render_process_host_impl.h View 1 2 3 4 5 6 7 8 9 10 11 12 1 chunk +26 lines, -0 lines 0 comments Download
M content/browser/renderer_host/render_process_host_impl.cc View 1 2 3 4 5 6 7 8 9 10 7 chunks +140 lines, -6 lines 0 comments Download
M content/browser/site_instance_impl.cc View 1 2 3 4 5 6 7 8 9 10 6 chunks +60 lines, -13 lines 0 comments Download
M content/browser/site_instance_impl_unittest.cc View 1 2 3 4 5 6 7 8 9 10 14 chunks +64 lines, -53 lines 0 comments Download
M content/browser/web_contents/render_view_host_manager.cc View 1 2 3 4 5 6 7 8 9 10 5 chunks +17 lines, -3 lines 0 comments Download
M content/browser/web_contents/render_view_host_manager_unittest.cc View 1 2 3 2 chunks +5 lines, -3 lines 0 comments Download
M content/public/common/content_switches.h View 1 2 3 4 5 1 chunk +1 line, -1 line 0 comments Download
M content/test/test_renderer_host.cc View 1 2 3 4 5 6 7 8 9 10 11 1 chunk +4 lines, -0 lines 0 comments Download

Messages

Total messages: 17 (0 generated)
Charlie Reis
Hey Albert-- Can you review? I'm still trying to understand the GetSetZoomLevel unit test failure ...
8 years, 6 months ago (2012-06-26 16:48:15 UTC) #1
Charlie Reis
New patch up that fixes the HostZoomMap test failure with a change to site_instance_impl_unittest.cc (cleaning ...
8 years, 6 months ago (2012-06-26 20:59:10 UTC) #2
awong
The logic looks good. Comments are mostly style with one suggestion about how to attach ...
8 years, 6 months ago (2012-06-27 00:26:54 UTC) #3
Charlie Reis
Thanks! PTAL. http://codereview.chromium.org/10575014/diff/35001/chrome/browser/ssl/ssl_browser_tests.cc File chrome/browser/ssl/ssl_browser_tests.cc (right): http://codereview.chromium.org/10575014/diff/35001/chrome/browser/ssl/ssl_browser_tests.cc#newcode843 chrome/browser/ssl/ssl_browser_tests.cc:843: // Create a new tab in the ...
8 years, 5 months ago (2012-06-27 20:53:43 UTC) #4
awong
LGTM w/ one comment about adding a comment http://codereview.chromium.org/10575014/diff/35001/content/browser/renderer_host/render_process_host_impl.cc File content/browser/renderer_host/render_process_host_impl.cc (right): http://codereview.chromium.org/10575014/diff/35001/content/browser/renderer_host/render_process_host_impl.cc#newcode1148 content/browser/renderer_host/render_process_host_impl.cc:1148: &g_context_site_process_map_.Get()[host->GetBrowserContext()]; ...
8 years, 5 months ago (2012-06-27 21:24:40 UTC) #5
Charlie Reis
Thanks. John, can you take a look for owner's approval? Albert had one question about ...
8 years, 5 months ago (2012-06-27 21:42:30 UTC) #6
jam
http://codereview.chromium.org/10575014/diff/51004/content/browser/renderer_host/render_process_host_impl.h File content/browser/renderer_host/render_process_host_impl.h (right): http://codereview.chromium.org/10575014/diff/51004/content/browser/renderer_host/render_process_host_impl.h#newcode135 content/browser/renderer_host/render_process_host_impl.h:135: static void UnregisterHost(int host_id, RenderProcessHost* host); no need to ...
8 years, 5 months ago (2012-06-28 00:12:52 UTC) #7
Charlie Reis
After looking at the SupportsUserData approach, I kind of like it a bit more, actually. ...
8 years, 5 months ago (2012-06-28 00:49:15 UTC) #8
Charlie Reis
Added a small fix to test_renderer_host.cc to ensure that MockRenderProcessHosts are deleted before their BrowserContext.
8 years, 5 months ago (2012-06-28 18:14:39 UTC) #9
awong
http://codereview.chromium.org/10575014/diff/71001/content/test/test_renderer_host.cc File content/test/test_renderer_host.cc (right): http://codereview.chromium.org/10575014/diff/71001/content/test/test_renderer_host.cc#newcode148 content/test/test_renderer_host.cc:148: rvh_test_enabler_.rph_factory_.reset(); Do these need to be deleted on any ...
8 years, 5 months ago (2012-06-28 19:38:13 UTC) #10
Charlie Reis
http://codereview.chromium.org/10575014/diff/71001/content/test/test_renderer_host.cc File content/test/test_renderer_host.cc (right): http://codereview.chromium.org/10575014/diff/71001/content/test/test_renderer_host.cc#newcode148 content/test/test_renderer_host.cc:148: rvh_test_enabler_.rph_factory_.reset(); On 2012/06/28 19:38:13, awong wrote: > Do these ...
8 years, 5 months ago (2012-06-28 19:41:57 UTC) #11
awong
LGTM On Thu, Jun 28, 2012 at 12:41 PM, <creis@chromium.org> wrote: > > http://codereview.chromium.**org/10575014/diff/71001/** > ...
8 years, 5 months ago (2012-06-28 19:44:36 UTC) #12
jam
lgtm http://codereview.chromium.org/10575014/diff/71001/content/browser/renderer_host/render_process_host_impl.h File content/browser/renderer_host/render_process_host_impl.h (right): http://codereview.chromium.org/10575014/diff/71001/content/browser/renderer_host/render_process_host_impl.h#newcode138 content/browser/renderer_host/render_process_host_impl.h:138: static bool ShouldUseProcessPerSite(content::BrowserContext* browser_context, nit: here and below, ...
8 years, 5 months ago (2012-06-28 21:25:05 UTC) #13
Charlie Reis
Thanks! Scott, can you take a look at new_tab_ui_browsertest.cc for OWNERs approval? http://codereview.chromium.org/10575014/diff/71001/content/browser/renderer_host/render_process_host_impl.h File content/browser/renderer_host/render_process_host_impl.h ...
8 years, 5 months ago (2012-06-28 21:30:19 UTC) #14
sky
LGTM
8 years, 5 months ago (2012-06-28 22:20:25 UTC) #15
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/creis@chromium.org/10575014/51011
8 years, 5 months ago (2012-06-29 15:02:40 UTC) #16
commit-bot: I haz the power
8 years, 5 months ago (2012-06-29 16:34:38 UTC) #17
Change committed as 144911

Powered by Google App Engine
This is Rietveld 408576698