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

Unified Diff: content/browser/plugin_filter.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/plugin_filter.h
diff --git a/content/browser/plugin_filter.h b/content/browser/plugin_filter.h
new file mode 100644
index 0000000000000000000000000000000000000000..ca826b1ca62d2d0671a137ba612df98464f4e537
--- /dev/null
+++ b/content/browser/plugin_filter.h
@@ -0,0 +1,19 @@
+// Copyright (c) 2011 The Chromium Authors. All rights reserved.
+// Use of this source code is governed by a BSD-style license that can be
+// found in the LICENSE file.
+
+#ifndef CONTENT_BROWSER_PLUGIN_FILTER_H_
+#define CONTENT_BROWSER_PLUGIN_FILTER_H_
+#pragma once
+
+// Callback class to let the client filter the list of all installed plug-ins.
+// This class is called on the FILE thread.
+class PluginFilter {
+ public:
+ virtual ~PluginFilter() {}
+ // Whether to use |plugin|. The client can return false to disallow the
+ // plugin, or return true and optionally change the passed in plugin.
+ virtual bool ShouldUsePlugin(webkit::npapi::WebPluginInfo* plugin) = 0;
+};
+
+#endif // CONTENT_BROWSER_PLUGIN_FILTER_H_

Powered by Google App Engine
This is Rietveld 408576698