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 7a47b3f489630284f03ae4ac33a82182f4e53f8a..492c431e5b0f75442e1f052d0a4a051ee7ba1df2 100644 |
--- a/chrome/browser/extensions/extension_function_dispatcher.h |
+++ b/chrome/browser/extensions/extension_function_dispatcher.h |
@@ -13,6 +13,7 @@ |
#include "googleurl/src/gurl.h" |
class Browser; |
+class Extension; |
class ExtensionFunction; |
class ExtensionHost; |
class Profile; |
@@ -74,6 +75,10 @@ class ExtensionFunctionDispatcher { |
// tab hosted extension pages, this will return NULL. |
ExtensionHost* GetExtensionHost(); |
+ // Gets the extension the function is being invoked by. This should not ever |
+ // return NULL. |
+ Extension* GetExtension(); |
+ |
// Handle a malformed message. Possibly the result of an attack, so kill |
// the renderer. |
void HandleBadMessage(ExtensionFunction* api); |