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

Unified Diff: content/public/browser/content_browser_client.h

Issue 12518033: Browser Plugin: Only install BrowserPluginMessageFilter if render process supports BrowserPlugin. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Addressed comments Created 7 years, 9 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/content_browser_client.h
diff --git a/content/public/browser/content_browser_client.h b/content/public/browser/content_browser_client.h
index 01a1e21b075e46a0d37872c6b2c965bbeeb6d8c5..b89fffae4910aa20ab07f4694396bf3a03cab571 100644
--- a/content/public/browser/content_browser_client.h
+++ b/content/public/browser/content_browser_client.h
@@ -478,6 +478,11 @@ class CONTENT_EXPORT ContentBrowserClient {
virtual content::BrowserPpapiHost* GetExternalBrowserPpapiHost(
int plugin_child_id);
+ // Returns true if the given browser_context and site_url support hosting
+ // BrowserPlugins.
+ virtual bool SupportsBrowserPlugin(BrowserContext* browser_context,
+ const GURL& site_url);
+
// Returns true if renderer processes can use Pepper TCP/UDP sockets from
// the given origin and connection type.
virtual bool AllowPepperSocketAPI(BrowserContext* browser_context,

Powered by Google App Engine
This is Rietveld 408576698