| Index: chrome/browser/extensions/extension_function_dispatcher.h
|
| ===================================================================
|
| --- chrome/browser/extensions/extension_function_dispatcher.h (revision 14694)
|
| +++ chrome/browser/extensions/extension_function_dispatcher.h (working copy)
|
| @@ -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 @@
|
| 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 @@
|
| // 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 @@
|
| private:
|
| RenderViewHost* render_view_host_;
|
|
|
| + Browser* browser_;
|
| +
|
| std::string extension_id_;
|
| };
|
|
|
|
|