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

Unified Diff: content/browser/mock_content_browser_client.cc

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/mock_content_browser_client.cc
diff --git a/content/browser/mock_content_browser_client.cc b/content/browser/mock_content_browser_client.cc
index a3fa95cded52e18c73642b9d6b1bedb1adf5edde..33016f54ff995db8607a28943d0e723a13d473dd 100644
--- a/content/browser/mock_content_browser_client.cc
+++ b/content/browser/mock_content_browser_client.cc
@@ -12,6 +12,19 @@
#include "ui/base/clipboard/clipboard.h"
#include "webkit/glue/webpreferences.h"
+namespace {
+
+class DummyPluginFilter : public PluginService::Filter {
+ public:
+ DummyPluginFilter() {}
+
+ virtual bool ShouldUsePlugin(webkit::npapi::WebPluginInfo* plugin) OVERRIDE {
+ return true;
+ }
+};
+
+} // namespace
+
namespace content {
MockContentBrowserClient::~MockContentBrowserClient() {
@@ -100,6 +113,15 @@ bool MockContentBrowserClient::AllowSaveLocalState(
return true;
}
+PluginService::Filter* MockContentBrowserClient::CreatePluginFilter(
+ int render_process_id,
+ int render_view_id,
+ const content::ResourceContext& context,
+ const GURL& url,
+ const GURL& policy_url) {
+ return new DummyPluginFilter();
+}
+
QuotaPermissionContext*
MockContentBrowserClient::CreateQuotaPermissionContext() {
return NULL;

Powered by Google App Engine
This is Rietveld 408576698