| 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 // Callback class to let the client filter the list of all installed plug-ins. |
| 10 // This class is called on the FILE thread. |
| 11 class PluginFilter { |
| 12 public: |
| 13 virtual ~PluginFilter() {} |
| 14 // Whether to use |plugin|. The client can return false to disallow the |
| 15 // plugin, or return true and optionally change the passed in plugin. |
| 16 virtual bool ShouldUsePlugin(webkit::npapi::WebPluginInfo* plugin) = 0; |
| 17 }; |
| 18 |
| 19 #endif // CONTENT_BROWSER_PLUGIN_FILTER_H_ |
| OLD | NEW |