Remove some RenderProcessHost::IsGuest call sites

This CL removes some of the callsites to RenderProcessHost::IsGuest.

BUG=364141, 330264
[email protected] for trivial android_webview change.

Review URL: https://codereview.chromium.org/291403002

git-svn-id: svn://svn.chromium.org/chrome/trunk/src@272830 0039d316-1c4b-4281-b951-d872f2087c98
diff --git a/content/browser/browser_plugin/browser_plugin_guest.h b/content/browser/browser_plugin/browser_plugin_guest.h
index 3f595e44..032e605 100644
--- a/content/browser/browser_plugin/browser_plugin_guest.h
+++ b/content/browser/browser_plugin/browser_plugin_guest.h
@@ -60,6 +60,7 @@
 
 class BrowserPluginGuestManager;
 class BrowserPluginHostFactory;
+class RenderViewHostImpl;
 class RenderWidgetHostView;
 class SiteInstance;
 class WebCursor;
@@ -96,6 +97,12 @@
       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();