| 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 fc50c17a2f13484c582f0c9cde938b434db86572..8f1f6d958d1604a551e844e3269f36bc7b2a49e9 100644
|
| --- a/chrome/browser/extensions/extension_function_dispatcher.h
|
| +++ b/chrome/browser/extensions/extension_function_dispatcher.h
|
| @@ -21,6 +21,7 @@ class ExtensionHost;
|
| class Profile;
|
| class RenderViewHost;
|
| class RenderViewHostDelegate;
|
| +class TabContents;
|
| class Value;
|
|
|
| // A factory function for creating new ExtensionFunction instances.
|
| @@ -48,6 +49,12 @@ class ExtensionFunctionDispatcher {
|
| return NULL;
|
| }
|
|
|
| + // Asks the delegate for any relevant TabContents associated with this
|
| + // context. For example, the TabContents in which an infobar or
|
| + // chrome-extension://<id> URL are being shown. Callers must check for a
|
| + // NULL return value (as in the case of a background page).
|
| + virtual TabContents* associated_tab_contents() = 0;
|
| +
|
| protected:
|
| virtual ~Delegate() {}
|
| };
|
|
|