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

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

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.h ('k') | content/public/browser/web_contents.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: content/browser/web_contents/web_contents_impl.cc
diff --git a/content/browser/web_contents/web_contents_impl.cc b/content/browser/web_contents/web_contents_impl.cc
index a062f18fa47c36b9e53e08b35ae69a888ea4bc64..3cf853535032ad2286bfcdd031cb8e0a6c6a01a4 100644
--- a/content/browser/web_contents/web_contents_impl.cc
+++ b/content/browser/web_contents/web_contents_impl.cc
@@ -836,6 +836,20 @@ void WebContentsImpl::GetRenderViewHostAtPosition(
callback.Run(GetRenderViewHost(), x, y);
}
+WebContents* WebContentsImpl::GetEmbedderWebContents() const {
+ BrowserPluginGuest* guest = GetBrowserPluginGuest();
+ if (guest)
+ return guest->embedder_web_contents();
+ return NULL;
+}
+
+int WebContentsImpl::GetEmbeddedInstanceID() const {
+ BrowserPluginGuest* guest = GetBrowserPluginGuest();
+ if (guest)
+ return guest->instance_id();
+ return 0;
+}
+
int WebContentsImpl::GetRoutingID() const {
if (!GetRenderViewHost())
return MSG_ROUTING_NONE;
« no previous file with comments | « content/browser/web_contents/web_contents_impl.h ('k') | content/public/browser/web_contents.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698