summaryrefslogtreecommitdiffstats
path: root/chrome/browser/extensions/extension_process_manager.h
diff options
context:
space:
mode:
authormpcomplete@chromium.org <mpcomplete@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2009-07-20 21:05:37 +0000
committermpcomplete@chromium.org <mpcomplete@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2009-07-20 21:05:37 +0000
commit7120f1327bcd3f0c33a983ee4a61c277747bb566 (patch)
treeda00ed514530587dd14f76941063d34a4afcda88 /chrome/browser/extensions/extension_process_manager.h
parent6d33519bd4d811112cef3d64d9c346531d65ab9b (diff)
downloadchromium_src-7120f1327bcd3f0c33a983ee4a61c277747bb566.zip
chromium_src-7120f1327bcd3f0c33a983ee4a61c277747bb566.tar.gz
chromium_src-7120f1327bcd3f0c33a983ee4a61c277747bb566.tar.bz2
Changed the extension.connect() API not to broadcast to all tabs. Added a
more specific tabs.connect(tabId) API to connect to a specific tab. Also changed the ExtensionMessageService from a singleton to a Profile-owned object. BUG=12461 TEST=no Review URL: http://codereview.chromium.org/155707 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@21102 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'chrome/browser/extensions/extension_process_manager.h')
-rw-r--r--chrome/browser/extensions/extension_process_manager.h11
1 files changed, 8 insertions, 3 deletions
diff --git a/chrome/browser/extensions/extension_process_manager.h b/chrome/browser/extensions/extension_process_manager.h
index e3d6b76..d2af74d 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,