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

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

Issue 8033001: Delegate decision what site instances can be rendered in what process to chrome (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: updates Created 9 years, 3 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: 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 cf1d94207dc2856ca9157c1218e2f3ce6346244d..3536ec4b434db93210ce635a213914a828ff40b5 100644
--- a/chrome/browser/extensions/extension_process_manager.h
+++ b/chrome/browser/extensions/extension_process_manager.h
@@ -77,6 +77,15 @@ class ExtensionProcessManager : public NotificationObserver {
// Unregisters the extension associated with |site_instance_id|.
void UnregisterExtensionSiteInstance(int site_instance_id);
+ // Registers a RenderProcessHost with |host_id| as hosting an extension.
+ void RegisterProcessHost(int host_id);
+
+ // Unregisters the RenderProcessHost with |host_id|.
+ void UnregisterProcessHost(int host_id);
+
+ // True if this process host is hosting an extension.
+ bool IsExtensionProcessHost(int host_id) const;
+
// Returns the extension process that |url| is associated with if it exists.
// This is not valid for hosted apps without the background permission, since
// such apps may have multiple processes.
@@ -126,6 +135,9 @@ class ExtensionProcessManager : public NotificationObserver {
typedef std::map<int, std::string> SiteInstanceIDMap;
SiteInstanceIDMap extension_ids_;
+ // A set of render process host IDs that have access to extension bindings.
+ std::set<int> process_ids_;
+
DISALLOW_COPY_AND_ASSIGN(ExtensionProcessManager);
};
« no previous file with comments | « chrome/browser/chrome_content_browser_client.cc ('k') | chrome/browser/extensions/extension_process_manager.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698