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

Unified Diff: content/browser/web_contents/web_contents_impl.h

Issue 11748034: Browser Plugin: Refactor BrowserPluginEmbedder to allow creating guests with openers (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Fixed nits Created 7 years, 11 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: content/browser/web_contents/web_contents_impl.h
diff --git a/content/browser/web_contents/web_contents_impl.h b/content/browser/web_contents/web_contents_impl.h
index e7a25895b275113fa548e2f2ba58ef804be32e15..310bca3ebc95cc11b1f97196a74312d180dfc8b9 100644
--- a/content/browser/web_contents/web_contents_impl.h
+++ b/content/browser/web_contents/web_contents_impl.h
@@ -85,10 +85,16 @@ class CONTENT_EXPORT WebContentsImpl
const WebContents::CreateParams& params,
WebContentsImpl* opener);
+ // Returns the opener WebContentsImpl, if any. This can be set to null if the
+ // opener is closed or the page clears its window.opener.
+ WebContentsImpl* opener() const { return opener_; }
+
// Creates a WebContents to be used as a browser plugin guest.
static WebContentsImpl* CreateGuest(
BrowserContext* browser_context,
content::SiteInstance* site_instance,
+ int routing_id,
+ WebContentsImpl* opener_web_contents,
int guest_instance_id,
const BrowserPluginHostMsg_CreateGuest_Params& params);
« no previous file with comments | « content/browser/browser_plugin/browser_plugin_embedder.cc ('k') | content/browser/web_contents/web_contents_impl.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698