| OLD | NEW |
| 1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2012 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 199 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 210 std::vector<webkit::WebPluginInfo>* plugins); | 210 std::vector<webkit::WebPluginInfo>* plugins); |
| 211 | 211 |
| 212 // Returns true if the given plugin supports a given file extension. | 212 // Returns true if the given plugin supports a given file extension. |
| 213 // |extension| should be all lower case. If |mime_type| is not NULL, it will | 213 // |extension| should be all lower case. If |mime_type| is not NULL, it will |
| 214 // be set to the MIME type if found. The MIME type which corresponds to the | 214 // be set to the MIME type if found. The MIME type which corresponds to the |
| 215 // extension is optionally returned back. | 215 // extension is optionally returned back. |
| 216 bool SupportsExtension(const webkit::WebPluginInfo& plugin, | 216 bool SupportsExtension(const webkit::WebPluginInfo& plugin, |
| 217 const std::string& extension, | 217 const std::string& extension, |
| 218 std::string* actual_mime_type); | 218 std::string* actual_mime_type); |
| 219 | 219 |
| 220 // Removes a plug-in from |plugins_list_| by its path. | |
| 221 static bool RemovePlugin(const FilePath& filename, | |
| 222 std::vector<webkit::WebPluginInfo>* plugins); | |
| 223 | |
| 224 // | 220 // |
| 225 // Platform functions | 221 // Platform functions |
| 226 // | 222 // |
| 227 | 223 |
| 228 // Do any initialization. | 224 // Do any initialization. |
| 229 void PlatformInit(); | 225 void PlatformInit(); |
| 230 | 226 |
| 231 // | 227 // |
| 232 // Command-line switches | 228 // Command-line switches |
| 233 // | 229 // |
| (...skipping 35 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 269 // accessed on multiple threads. | 265 // accessed on multiple threads. |
| 270 base::Lock lock_; | 266 base::Lock lock_; |
| 271 | 267 |
| 272 DISALLOW_COPY_AND_ASSIGN(PluginList); | 268 DISALLOW_COPY_AND_ASSIGN(PluginList); |
| 273 }; | 269 }; |
| 274 | 270 |
| 275 } // namespace npapi | 271 } // namespace npapi |
| 276 } // namespace webkit | 272 } // namespace webkit |
| 277 | 273 |
| 278 #endif // WEBKIT_PLUGINS_NPAPI_PLUGIN_LIST_H_ | 274 #endif // WEBKIT_PLUGINS_NPAPI_PLUGIN_LIST_H_ |
| OLD | NEW |