Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(13)

Side by Side Diff: webkit/plugins/npapi/plugin_list.h

Issue 11369247: Remove PluginList::RemovePlugin() and directly remove old plug-ins from plug-in list instead. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 8 years, 1 month ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
« no previous file with comments | « no previous file | webkit/plugins/npapi/plugin_list.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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
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
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_
OLDNEW
« no previous file with comments | « no previous file | webkit/plugins/npapi/plugin_list.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698