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

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

Issue 272573005: <webview>: Move NewWindow API to chrome (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@guestview_manager_rename
Patch Set: Merge with ToT Created 6 years, 7 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
« no previous file with comments | « content/public/browser/content_browser_client.h ('k') | content/public/browser/web_contents.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: content/public/browser/web_contents.h
diff --git a/content/public/browser/web_contents.h b/content/public/browser/web_contents.h
index 38830c3a86cbf2a8cfa0ed931e21c698c4238053..0836512db9140ba0416d1e0fbe3583d7e5f9f301 100644
--- a/content/public/browser/web_contents.h
+++ b/content/public/browser/web_contents.h
@@ -93,7 +93,13 @@ class WebContents : public PageNavigator,
// privileged process.
SiteInstance* site_instance;
+ // The opener WebContents is the WebContents that initiated this request,
+ // if any.
WebContents* opener;
+
+ // If the opener is suppressed, then the new WebContents doesn't hold a
+ // reference to its opener.
+ bool opener_suppressed;
int routing_id;
int main_frame_routing_id;
@@ -194,15 +200,6 @@ class WebContents : public PageNavigator,
// Gets the current RenderViewHost for this tab.
virtual RenderViewHost* GetRenderViewHost() const = 0;
- // Returns the WebContents embedding this WebContents, if any.
- // If this is a top-level WebContents then it returns NULL.
- virtual WebContents* GetEmbedderWebContents() const = 0;
-
- // Gets the instance ID of the current WebContents if it is embedded
- // within a BrowserPlugin. The instance ID of a WebContents uniquely
- // identifies it within its embedder WebContents.
- virtual int GetEmbeddedInstanceID() const = 0;
-
// Gets the current RenderViewHost's routing id. Returns
// MSG_ROUTING_NONE when there is no RenderViewHost.
virtual int GetRoutingID() const = 0;
« no previous file with comments | « content/public/browser/content_browser_client.h ('k') | content/public/browser/web_contents.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698