| Index: extensions/browser/extension_function.h
|
| diff --git a/extensions/browser/extension_function.h b/extensions/browser/extension_function.h
|
| index 4cb41ad5d30e89eeda6bfce76d168d16e0f10a2c..5815f8e597f56219ab94c2862666a3cf6619d969 100644
|
| --- a/extensions/browser/extension_function.h
|
| +++ b/extensions/browser/extension_function.h
|
| @@ -443,6 +443,11 @@ class UIThreadExtensionFunction : public ExtensionFunction {
|
| // contents then defaults to the foremost one.
|
| virtual content::WebContents* GetAssociatedWebContents();
|
|
|
| + // Gets the visible web contents if any. In many cases this will be the same
|
| + // WebContents as |GetAssociatedWebContents|, however not always, in
|
| + // particular when the function caller is a background page.
|
| + virtual content::WebContents* GetVisibleWebContents();
|
| +
|
| protected:
|
| // Emits a message to the extension's devtools console.
|
| void WriteToConsole(content::ConsoleMessageLevel level,
|
|
|