summaryrefslogtreecommitdiffstats
path: root/chrome/browser/extensions/extension_message_service.h
diff options
context:
space:
mode:
Diffstat (limited to 'chrome/browser/extensions/extension_message_service.h')
-rwxr-xr-xchrome/browser/extensions/extension_message_service.h8
1 files changed, 8 insertions, 0 deletions
diff --git a/chrome/browser/extensions/extension_message_service.h b/chrome/browser/extensions/extension_message_service.h
index 343c632..6e949f0 100755
--- a/chrome/browser/extensions/extension_message_service.h
+++ b/chrome/browser/extensions/extension_message_service.h
@@ -10,6 +10,7 @@
#include <string>
#include "base/lock.h"
+#include "chrome/browser/renderer_host/render_process_host.h"
#include "chrome/common/notification_observer.h"
class MessageLoop;
@@ -36,6 +37,9 @@ class ExtensionMessageService : public NotificationObserver {
// --- UI thread only:
+ // Gets the process for the specified extension.
+ RenderProcessHost* GetProcessForExtension(const std::string& extension_id);
+
// Register an extension and its corresponding renderer process.
void RegisterExtension(const std::string& extension_id,
int render_process_id);
@@ -68,6 +72,10 @@ class ExtensionMessageService : public NotificationObserver {
ResourceMessageFilter* source);
private:
+ // Gets the process ID for the specified etension.
+ // NOTE: this can be called from any thread.
+ int GetProcessIdForExtension(const std::string& extension_id);
+
// The UI message loop, used for posting tasks.
MessageLoop* ui_loop_;