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

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: 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 6814e175ec4e8f25287b17c7513fa62d7bbd8715..addb53f8d641566d023a0ea54aa08c9e971bd0ed 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;
jam 2013/02/06 17:02:09 why does this need to be exposed? i don't see it u
Fady Samuel 2013/02/06 17:06:00 It is, see in ExtensionRendererState web_view_inf
+
// 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