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

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

Issue 155707: Changed the extension.connect() API not to broadcast to all tabs. Added a (Closed)
Patch Set: review comments Created 11 years, 5 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 e3d6b76cbb5dd8503050c3e2516480351f296413..d2af74d9f6c55a9bc786cd8fc1f00f7d7c739883 100644
--- a/chrome/browser/extensions/extension_process_manager.h
+++ b/chrome/browser/extensions/extension_process_manager.h
@@ -21,6 +21,7 @@ class ExtensionView;
#endif
class GURL;
class Profile;
+class RenderProcessHost;
class SiteInstance;
// Manages dynamic state of running Chromium extensions. There is one instance
@@ -45,13 +46,17 @@ class ExtensionProcessManager : public NotificationObserver {
// Returns the SiteInstance that the given URL belongs to.
SiteInstance* GetSiteInstanceForURL(const GURL& url);
- // Register an extension process by |extension_id| and specifying which
+ // Registers an extension process by |extension_id| and specifying which
// |process_id| it belongs to.
- void RegisterExtensionProcess(std::string extension_id, int process_id);
+ void RegisterExtensionProcess(const std::string& extension_id,
+ int process_id);
- // Unregister an extension process with specified |process_id|.
+ // Unregisters an extension process with specified |process_id|.
void UnregisterExtensionProcess(int process_id);
+ // Returns the process that the extension with the given ID is running in.
+ RenderProcessHost* GetExtensionProcess(const std::string& extension_id);
+
// NotificationObserver:
virtual void Observe(NotificationType type,
const NotificationSource& source,
« no previous file with comments | « chrome/browser/extensions/extension_messages_unittest.cc ('k') | chrome/browser/extensions/extension_process_manager.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698