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

Unified Diff: content/browser/browser_plugin/browser_plugin_guest.h

Issue 291403002: Remove some RenderProcessHost::IsGuest call sites (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Fixed Android build 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
Index: content/browser/browser_plugin/browser_plugin_guest.h
diff --git a/content/browser/browser_plugin/browser_plugin_guest.h b/content/browser/browser_plugin/browser_plugin_guest.h
index 3f595e4450d6c696bf4230c764e9581bb45a9880..032e605d287c6a9061223ad6acaeda0319736da4 100644
--- a/content/browser/browser_plugin/browser_plugin_guest.h
+++ b/content/browser/browser_plugin/browser_plugin_guest.h
@@ -60,6 +60,7 @@ namespace content {
class BrowserPluginGuestManager;
class BrowserPluginHostFactory;
+class RenderViewHostImpl;
class RenderWidgetHostView;
class SiteInstance;
class WebCursor;
@@ -96,6 +97,12 @@ class CONTENT_EXPORT BrowserPluginGuest
scoped_ptr<base::DictionaryValue> extra_params,
BrowserPluginGuest* opener);
+ // Returns whether the given WebContents is a BrowserPlugin guest.
+ static bool IsGuest(WebContentsImpl* web_contents);
+
+ // Returns whether the given RenderviewHost is a BrowserPlugin guest.
+ static bool IsGuest(RenderViewHostImpl* render_view_host);
+
// Returns a WeakPtr to this BrowserPluginGuest.
base::WeakPtr<BrowserPluginGuest> AsWeakPtr();
« no previous file with comments | « chrome/browser/task_manager/extension_information.cc ('k') | content/browser/browser_plugin/browser_plugin_guest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698