| OLD | NEW |
| 1 // Copyright (c) 2011 The Chromium Authors. All rights reserved. | 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 | 2 // Use of this source code is governed by a BSD-style license that can be |
| 3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
| 4 | 4 |
| 5 #ifndef WEBKIT_PLUGINS_NPAPI_PLUGIN_LIST_H_ | 5 #ifndef WEBKIT_PLUGINS_NPAPI_PLUGIN_LIST_H_ |
| 6 #define WEBKIT_PLUGINS_NPAPI_PLUGIN_LIST_H_ | 6 #define WEBKIT_PLUGINS_NPAPI_PLUGIN_LIST_H_ |
| 7 | 7 |
| 8 #include <set> | 8 #include <set> |
| 9 #include <string> | 9 #include <string> |
| 10 #include <utility> | 10 #include <utility> |
| (...skipping 108 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 119 const std::string& mime_types, | 119 const std::string& mime_types, |
| 120 const std::string& file_extensions, | 120 const std::string& file_extensions, |
| 121 const string16& mime_type_descriptions, | 121 const string16& mime_type_descriptions, |
| 122 std::vector<webkit::WebPluginMimeType>* parsed_mime_types); | 122 std::vector<webkit::WebPluginMimeType>* parsed_mime_types); |
| 123 | 123 |
| 124 // Get all the plugins synchronously. | 124 // Get all the plugins synchronously. |
| 125 void GetPlugins(std::vector<webkit::WebPluginInfo>* plugins); | 125 void GetPlugins(std::vector<webkit::WebPluginInfo>* plugins); |
| 126 | 126 |
| 127 // Returns true if the list of plugins is cached and is copied into the out | 127 // Returns true if the list of plugins is cached and is copied into the out |
| 128 // pointer; returns false if the plugin list needs to be refreshed. | 128 // pointer; returns false if the plugin list needs to be refreshed. |
| 129 bool GetPluginsIfNoRefreshNeeded(std::vector<webkit::WebPluginInfo>* plugins); | 129 virtual bool GetPluginsIfNoRefreshNeeded( |
| 130 std::vector<webkit::WebPluginInfo>* plugins); |
| 130 | 131 |
| 131 // Returns a list in |info| containing plugins that are found for | 132 // Returns a list in |info| containing plugins that are found for |
| 132 // the given url and mime type (including disabled plugins, for | 133 // the given url and mime type (including disabled plugins, for |
| 133 // which |info->enabled| is false). The mime type which corresponds | 134 // which |info->enabled| is false). The mime type which corresponds |
| 134 // to the URL is optionally returned back in |actual_mime_types| (if | 135 // to the URL is optionally returned back in |actual_mime_types| (if |
| 135 // it is non-NULL), one for each of the plugin info objects found. | 136 // it is non-NULL), one for each of the plugin info objects found. |
| 136 // The |allow_wildcard| parameter controls whether this function | 137 // The |allow_wildcard| parameter controls whether this function |
| 137 // returns plugins which support wildcard mime types (* as the mime | 138 // returns plugins which support wildcard mime types (* as the mime |
| 138 // type). The |info| parameter is required to be non-NULL. The | 139 // type). The |info| parameter is required to be non-NULL. The |
| 139 // list is in order of "most desirable" to "least desirable", | 140 // list is in order of "most desirable" to "least desirable", |
| (...skipping 157 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 297 // Set to true if the default plugin is enabled. | 298 // Set to true if the default plugin is enabled. |
| 298 bool default_plugin_enabled_; | 299 bool default_plugin_enabled_; |
| 299 | 300 |
| 300 DISALLOW_COPY_AND_ASSIGN(PluginList); | 301 DISALLOW_COPY_AND_ASSIGN(PluginList); |
| 301 }; | 302 }; |
| 302 | 303 |
| 303 } // namespace npapi | 304 } // namespace npapi |
| 304 } // namespace webkit | 305 } // namespace webkit |
| 305 | 306 |
| 306 #endif // WEBKIT_PLUGINS_NPAPI_PLUGIN_LIST_H_ | 307 #endif // WEBKIT_PLUGINS_NPAPI_PLUGIN_LIST_H_ |
| OLD | NEW |