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

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

Issue 12226022: <webview>: Store <webview> embedder info in ExtensionRendererState (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Updated comment on instance ID Created 7 years, 10 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/browser/web_contents/web_contents_impl.cc ('k') | no next file » | 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 0431c17831b5ffd6186bb6db48c4994cf1c37bd8..819e6282aaa7f306d51042567f71cca46f95aa34 100644
--- a/content/public/browser/web_contents.h
+++ b/content/public/browser/web_contents.h
@@ -146,6 +146,15 @@ class WebContents : public PageNavigator,
int y,
const GetRenderViewHostCallback& callback) = 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/browser/web_contents/web_contents_impl.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698