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

Unified Diff: content/browser/content_browser_client.h

Issue 7387010: Add PluginServiceFilter interface. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Move PluginFilter into content:: Created 9 years, 5 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/content_browser_client.h
diff --git a/content/browser/content_browser_client.h b/content/browser/content_browser_client.h
index fd5f4aac9a0294e8c36e036e00194653aa558fbd..f50d82b419895434183a5e98edf1705cd35085fe 100644
--- a/content/browser/content_browser_client.h
+++ b/content/browser/content_browser_client.h
@@ -49,9 +49,16 @@ namespace ui {
class Clipboard;
}
+namespace webkit {
+namespace npapi {
+struct WebPluginInfo;
+}
+}
+
namespace content {
class BrowserContext;
+class PluginFilter;
class ResourceContext;
class WebUIFactory;
@@ -148,6 +155,15 @@ class ContentBrowserClient {
virtual bool AllowSaveLocalState(
const content::ResourceContext& context) = 0;
+ // Creates a new PluginFilter.
+ // This is called on the IO thread.
+ virtual content::PluginFilter* CreatePluginFilter(
+ int render_process_id,
+ int render_view_id,
+ const content::ResourceContext& resource_context,
+ const GURL& url,
+ const GURL& policy_url) = 0;
+
// Allows the embedder to override the request context based on the URL for
// certain operations, like cookie access. Returns NULL to indicate the
// regular request context should be used.

Powered by Google App Engine
This is Rietveld 408576698