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

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: add resource_context 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 9983a219944ffa07946712a2e8a19a1e697c1f69..77ea549a6162eac5cd30daa84b5c211df2f0bacf 100644
--- a/content/browser/content_browser_client.h
+++ b/content/browser/content_browser_client.h
@@ -10,6 +10,7 @@
#include "base/callback_old.h"
#include "base/memory/weak_ptr.h"
+#include "content/browser/plugin_service.h"
#include "content/common/content_client.h"
#include "content/common/window_container_type.h"
#include "third_party/WebKit/Source/WebKit/chromium/public/WebNotificationPresenter.h"
@@ -52,6 +53,12 @@ namespace ui {
class Clipboard;
}
+namespace webkit {
+namespace npapi {
+struct WebPluginInfo;
+}
+}
+
namespace content {
class BrowserContext;
@@ -151,6 +158,15 @@ class ContentBrowserClient {
virtual bool AllowSaveLocalState(
const content::ResourceContext& context) = 0;
+ // Creates a new PluginFilter.
+ // This is called on the IO thread.
+ virtual PluginService::Filter* CreatePluginFilter(
jam 2011/08/01 03:25:44 in general, it's best to keep the embedder interfa
Bernhard Bauer 2011/08/01 16:06:12 There are two reasons for having a separate filter
jam 2011/08/01 17:25:04 You can move the "plugin->path.value() == webkit::
Bernhard Bauer 2011/08/01 18:07:39 But PluginService doesn't even get to see disabled
jam 2011/08/02 04:18:18 I see. this can be accomplished in other ways than
Bernhard Bauer 2011/08/02 12:45:08 I found a different way, by removing the default p
jam 2011/08/02 15:13:32 I wouldn't say all clients, RenderMessageFilter us
Bernhard Bauer 2011/08/02 15:52:47 But only because it already jumps to the FILE thre
Bernhard Bauer 2011/08/02 16:13:31 Elaborating a bit more, we could have an abstract
+ 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