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

Unified Diff: content/public/browser/plugin_service_filter.h

Issue 12315023: Merge 180159 (Closed) Base URL: svn://svn.chromium.org/chrome/branches/1364/src/
Patch Set: Created 7 years, 10 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
« no previous file with comments | « content/browser/renderer_host/render_message_filter.cc ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: content/public/browser/plugin_service_filter.h
===================================================================
--- content/public/browser/plugin_service_filter.h (revision 183671)
+++ content/public/browser/plugin_service_filter.h (working copy)
@@ -13,20 +13,25 @@
namespace content {
-// Callback class to let the client filter the list of all installed plug-ins.
+// Callback class to let the client filter the list of all installed plug-ins
+// and block them from being loaded.
// This class is called on the FILE thread.
class PluginServiceFilter {
public:
virtual ~PluginServiceFilter() {}
- // Whether to use |plugin|. The client can return false to disallow the
+ // Whether |plugin| is enabled. The client can return false to hide the
// plugin, or return true and optionally change the passed in plugin.
- virtual bool ShouldUsePlugin(int render_process_id,
+ virtual bool IsPluginEnabled(int render_process_id,
int render_view_id,
const void* context,
const GURL& url,
const GURL& policy_url,
webkit::WebPluginInfo* plugin) = 0;
+
+ // Whether the renderer has permission to load enabled |plugin|.
+ virtual bool CanLoadPlugin(int render_process_id,
+ const FilePath& path) = 0;
};
} // namespace content
« no previous file with comments | « content/browser/renderer_host/render_message_filter.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698