OLD | NEW |
(Empty) | |
| 1 // Copyright (c) 2011 The Chromium Authors. All rights reserved. |
| 2 // Use of this source code is governed by a BSD-style license that can be |
| 3 // found in the LICENSE file. |
| 4 |
| 5 #ifndef CONTENT_BROWSER_PLUGIN_FILTER_H_ |
| 6 #define CONTENT_BROWSER_PLUGIN_FILTER_H_ |
| 7 #pragma once |
| 8 |
| 9 class GURL; |
| 10 |
| 11 namespace webkit { |
| 12 struct WebPluginInfo; |
| 13 } |
| 14 |
| 15 namespace content { |
| 16 |
| 17 class ResourceContext; |
| 18 |
| 19 // Callback class to let the client filter the list of all installed plug-ins. |
| 20 // This class is called on the FILE thread. |
| 21 class PluginServiceFilter { |
| 22 public: |
| 23 virtual ~PluginServiceFilter() {} |
| 24 // Whether to use |plugin|. The client can return false to disallow the |
| 25 // plugin, or return true and optionally change the passed in plugin. |
| 26 virtual bool ShouldUsePlugin( |
| 27 int render_process_id, |
| 28 int render_view_id, |
| 29 const void* context, |
| 30 const GURL& url, |
| 31 const GURL& policy_url, |
| 32 webkit::WebPluginInfo* plugin) = 0; |
| 33 }; |
| 34 |
| 35 } // namespace content |
| 36 |
| 37 #endif // CONTENT_BROWSER_PLUGIN_FILTER_H_ |
OLD | NEW |