Index: content/public/browser/plugin_service_filter.h |
=================================================================== |
--- content/public/browser/plugin_service_filter.h (revision 180109) |
+++ content/public/browser/plugin_service_filter.h (working copy) |
@@ -13,25 +13,20 @@ |
namespace content { |
-// Callback class to let the client filter the list of all installed plug-ins |
-// and block them from being loaded. |
+// Callback class to let the client filter the list of all installed plug-ins. |
// This class is called on the FILE thread. |
class PluginServiceFilter { |
public: |
virtual ~PluginServiceFilter() {} |
- // Whether |plugin| is enabled. The client can return false to hide the |
+ // 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 IsPluginEnabled(int render_process_id, |
+ virtual bool ShouldUsePlugin(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 |