Chromium Code Reviews| 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..4698dff7043112742658b89310894685739acc28 100644 |
| --- a/chrome/browser/extensions/extension_process_manager.h |
| +++ b/chrome/browser/extensions/extension_process_manager.h |
| @@ -77,6 +77,16 @@ 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 having permission to |
| + // access extension bindings. |
| + void RegisterProcessHostWithBindings(int host_id); |
|
Aaron Boodman
2011/09/27 19:26:49
Can we just call these methods "RegisterProcess",
jochen (gone - plz use gerrit)
2011/09/27 20:41:40
Done
|
| + |
| + // Unregisters the RenderProcessHost with |host_id|. |
| + void UnregisterProcessHostWithBindings(int host_id); |
| + |
| + // True if this process host is known to have access to extension bindings. |
| + bool IsProcessHostWithBindings(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 +136,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); |
| }; |