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

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: Cleanup name 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
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..be5d5ee64578871a18e31b186a9a4e67d2dbf0cf 100644
--- a/content/public/browser/web_contents.h
+++ b/content/public/browser/web_contents.h
@@ -146,6 +146,14 @@ 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. It returns 0 if not.
+ virtual int GetInstanceID() const = 0;
Matt Perry 2013/02/06 22:06:55 GetEmbeddedInstanceId?
Fady Samuel 2013/02/06 23:23:33 Done.
+
// Gets the current RenderViewHost's routing id. Returns
// MSG_ROUTING_NONE when there is no RenderViewHost.
virtual int GetRoutingID() const = 0;

Powered by Google App Engine
This is Rietveld 408576698