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

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

Issue 7649029: Cleanup: Remove dead code - PluginList::DisableOutdatedPluginGroups. (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: Created 9 years, 4 months 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_group.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) 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_GROUP_H_ 5 #ifndef WEBKIT_PLUGINS_NPAPI_PLUGIN_GROUP_H_
6 #define WEBKIT_PLUGINS_NPAPI_PLUGIN_GROUP_H_ 6 #define WEBKIT_PLUGINS_NPAPI_PLUGIN_GROUP_H_
7 #pragma once 7 #pragma once
8 8
9 #include <map> 9 #include <map>
10 #include <set> 10 #include <set>
(...skipping 172 matching lines...) Expand 10 before | Expand all | Expand 10 after
183 bool IsVulnerable() const; 183 bool IsVulnerable() const;
184 184
185 // Returns true if this plug-in group always requires user authorization 185 // Returns true if this plug-in group always requires user authorization
186 // to run. 186 // to run.
187 bool RequiresAuthorization() const; 187 bool RequiresAuthorization() const;
188 188
189 // Check if the group has no plugins. Could happen after a reload if the plug- 189 // Check if the group has no plugins. Could happen after a reload if the plug-
190 // in has disappeared from the pc (or in the process of updating). 190 // in has disappeared from the pc (or in the process of updating).
191 bool IsEmpty() const; 191 bool IsEmpty() const;
192 192
193 // Disables all plugins in this group that are older than the
194 // minimum version.
195 void DisableOutdatedPlugins();
196
197 // Parse a version string as used by a plug-in. This method is more lenient 193 // Parse a version string as used by a plug-in. This method is more lenient
198 // in accepting weird version strings than Version::GetFromString(). 194 // in accepting weird version strings than Version::GetFromString().
199 static Version* CreateVersionFromString(const string16& version_string); 195 static Version* CreateVersionFromString(const string16& version_string);
200 196
201 std::vector<webkit::WebPluginInfo> web_plugin_infos() { 197 std::vector<webkit::WebPluginInfo> web_plugin_infos() {
202 return web_plugin_infos_; 198 return web_plugin_infos_;
203 } 199 }
204 200
205 private: 201 private:
206 friend class PluginList; 202 friend class PluginList;
(...skipping 82 matching lines...) Expand 10 before | Expand all | Expand 10 after
289 bool enabled_; 285 bool enabled_;
290 std::vector<VersionRange> version_ranges_; 286 std::vector<VersionRange> version_ranges_;
291 scoped_ptr<Version> version_; 287 scoped_ptr<Version> version_;
292 std::vector<webkit::WebPluginInfo> web_plugin_infos_; 288 std::vector<webkit::WebPluginInfo> web_plugin_infos_;
293 }; 289 };
294 290
295 } // namespace npapi 291 } // namespace npapi
296 } // namespace webkit 292 } // namespace webkit
297 293
298 #endif // WEBKIT_PLUGINS_NPAPI_PLUGIN_GROUP_H_ 294 #endif // WEBKIT_PLUGINS_NPAPI_PLUGIN_GROUP_H_
OLDNEW
« no previous file with comments | « no previous file | webkit/plugins/npapi/plugin_group.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698