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

Unified Diff: chrome/browser/extensions/extension_process_manager.h

Issue 9221017: Hide BrowsingInstance from all but SiteInstance, as intended by design. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Rebase. Created 8 years, 11 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
« no previous file with comments | « chrome/browser/extensions/extension_host.cc ('k') | chrome/browser/extensions/extension_process_manager.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/extensions/extension_process_manager.h
diff --git a/chrome/browser/extensions/extension_process_manager.h b/chrome/browser/extensions/extension_process_manager.h
index 484d36be382d33466c4ebe0baffc29a43dab285f..743fd550ba1ae05b1af6e5ed6bac5583535ea4fd 100644
--- a/chrome/browser/extensions/extension_process_manager.h
+++ b/chrome/browser/extensions/extension_process_manager.h
@@ -17,7 +17,6 @@
#include "content/public/browser/notification_registrar.h"
class Browser;
-class BrowsingInstance;
class Extension;
class ExtensionHost;
class GURL;
@@ -110,6 +109,10 @@ class ExtensionProcessManager : public content::NotificationObserver {
const content::NotificationSource& source,
const content::NotificationDetails& details) OVERRIDE;
+ // Gets the profile associated with site_instance_ and all other
+ // related SiteInstances.
+ Profile* GetProfile() const;
+
content::NotificationRegistrar registrar_;
// The set of all ExtensionHosts managed by this process manager.
@@ -118,9 +121,10 @@ class ExtensionProcessManager : public content::NotificationObserver {
// The set of running viewless background extensions.
ExtensionHostSet background_hosts_;
- // The BrowsingInstance shared by all extensions in this profile. This
- // controls process grouping.
- scoped_refptr<BrowsingInstance> browsing_instance_;
+ // A SiteInstance related to the SiteInstance for all extensions in
+ // this profile. We create it in such a way that a new
+ // browsing instance is created. This controls process grouping.
+ scoped_refptr<SiteInstance> site_instance_;
private:
// Contains all extension-related RenderViewHost instances for all extensions.
« no previous file with comments | « chrome/browser/extensions/extension_host.cc ('k') | chrome/browser/extensions/extension_process_manager.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698