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

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: review 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..4140dcb6af3e0f9a6e2f8206383d9f362e56ccef 100644
--- a/content/browser/content_browser_client.h
+++ b/content/browser/content_browser_client.h
@@ -20,6 +20,7 @@ class DevToolsManager;
class FilePath;
class GURL;
class MHTMLGenerationManager;
+class PluginFilter;
class PluginProcessHost;
class QuotaPermissionContext;
class RenderViewHost;
@@ -49,6 +50,12 @@ namespace ui {
class Clipboard;
}
+namespace webkit {
+namespace npapi {
+struct WebPluginInfo;
+}
+}
+
namespace content {
class BrowserContext;
@@ -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 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