Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(2969)

Unified Diff: extensions/browser/extension_function.h

Issue 458323002: Change GuestViewInternalCreateGuestFunction to create the guest view using the (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: add test Created 6 years, 4 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
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,

Powered by Google App Engine
This is Rietveld 408576698