| 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_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 Loading... |
| 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 Loading... |
| 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_ |
| OLD | NEW |