| Index: chrome/browser/extensions/extension_function_dispatcher.h
|
| diff --git a/chrome/browser/extensions/extension_function_dispatcher.h b/chrome/browser/extensions/extension_function_dispatcher.h
|
| index 0e7988250c394363951bbc69a911b800ed0640f2..af749863b80a8d65b863cfe303a1f4cfa2c7cdcf 100644
|
| --- a/chrome/browser/extensions/extension_function_dispatcher.h
|
| +++ b/chrome/browser/extensions/extension_function_dispatcher.h
|
| @@ -14,6 +14,7 @@
|
|
|
| class Browser;
|
| class ExtensionFunction;
|
| +class ExtensionHost;
|
| class Profile;
|
| class RenderViewHost;
|
| class RenderViewHostDelegate;
|
| @@ -29,6 +30,7 @@ class ExtensionFunctionDispatcher {
|
| class Delegate {
|
| public:
|
| virtual Browser* GetBrowser() = 0;
|
| + virtual ExtensionHost* GetHost() { return NULL; }
|
| };
|
|
|
| // The peer object allows us to notify ExtensionFunctions when we are
|
| @@ -68,6 +70,9 @@ class ExtensionFunctionDispatcher {
|
| // example, for positioning windows, or alert boxes, or creating tabs.
|
| Browser* GetBrowser();
|
|
|
| + //
|
| + ExtensionHost* GetHost();
|
| +
|
| // Handle a malformed message. Possibly the result of an attack, so kill
|
| // the renderer.
|
| void HandleBadMessage(ExtensionFunction* api);
|
|
|