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

Unified Diff: content/public/browser/content_browser_client.h

Issue 9965091: Clean up RenderViewHostManager swapping logic. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Merge and clean up comments. Created 8 years, 7 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
Index: content/public/browser/content_browser_client.h
diff --git a/content/public/browser/content_browser_client.h b/content/public/browser/content_browser_client.h
index fcf53c78ccdaf3f846cb5b122653c85730c9bbae..6cfa5ad1a47112b44f3cea9700c06dcd8297c12c 100644
--- a/content/public/browser/content_browser_client.h
+++ b/content/public/browser/content_browser_client.h
@@ -145,10 +145,13 @@ class CONTENT_EXPORT ContentBrowserClient {
virtual void SiteInstanceDeleting(SiteInstance* site_instance) {}
// Returns true if for the navigation from |current_url| to |new_url|,
- // processes should be swapped (even if we are in a process model that
- // doesn't usually swap).
- virtual bool ShouldSwapProcessesForNavigation(const GURL& current_url,
- const GURL& new_url);
+ // a new SiteInstance and BrowsingInstance should be created (even if we are
+ // in a process model that doesn't usually swap). This forces a process swap
+ // and severs script connections with existing tabs.
+ virtual bool ShouldSwapBrowsingInstancesForNavigation(
darin (slow to review) 2012/05/31 04:43:08 Why pluralize BrowsingInstance here? Also, it loo
Charlie Reis 2012/05/31 17:58:23 Seemed consistent with ShouldSwapProcessesForX. I
+ BrowserContext* browser_context,
+ const GURL& current_url,
+ const GURL& new_url);
// Returns true if the given navigation redirect should cause a renderer
// process swap.

Powered by Google App Engine
This is Rietveld 408576698