summaryrefslogtreecommitdiffstats
path: root/chrome/browser/extensions/extension_function_dispatcher.h
diff options
context:
space:
mode:
Diffstat (limited to 'chrome/browser/extensions/extension_function_dispatcher.h')
-rw-r--r--chrome/browser/extensions/extension_function_dispatcher.h7
1 files changed, 7 insertions, 0 deletions
diff --git a/chrome/browser/extensions/extension_function_dispatcher.h b/chrome/browser/extensions/extension_function_dispatcher.h
index ab3a07d..1ffb3d4 100644
--- a/chrome/browser/extensions/extension_function_dispatcher.h
+++ b/chrome/browser/extensions/extension_function_dispatcher.h
@@ -10,9 +10,11 @@
#include "base/values.h"
+class Browser;
class ExtensionFunction;
class Profile;
class RenderViewHost;
+class RenderViewHostDelegate;
// ExtensionFunctionDispatcher receives requests to execute functions from
// Chromium extensions running in a RenderViewHost and dispatches them to the
@@ -23,6 +25,7 @@ class ExtensionFunctionDispatcher {
static void GetAllFunctionNames(std::vector<std::string>* names);
ExtensionFunctionDispatcher(RenderViewHost* render_view_host,
+ Browser* browser,
const std::string& extension_id);
// Handle a request to execute an extension function.
@@ -32,6 +35,8 @@ class ExtensionFunctionDispatcher {
// Send a response to a function.
void SendResponse(ExtensionFunction* api);
+ Browser* browser() { return browser_; }
+
// Handle a malformed message. Possibly the result of an attack, so kill
// the renderer.
void HandleBadMessage(ExtensionFunction* api);
@@ -45,6 +50,8 @@ class ExtensionFunctionDispatcher {
private:
RenderViewHost* render_view_host_;
+ Browser* browser_;
+
std::string extension_id_;
};