| 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 <string> | 9 #include <string> |
| 10 #include <vector> | 10 #include <vector> |
| 11 | 11 |
| 12 #include "base/gtest_prod_util.h" | 12 #include "base/gtest_prod_util.h" |
| 13 #include "base/memory/scoped_ptr.h" | 13 #include "base/memory/scoped_ptr.h" |
| 14 #include "base/string16.h" | 14 #include "base/string16.h" |
| 15 #include "webkit/plugins/webkit_plugins_export.h" |
| 15 #include "webkit/plugins/webplugininfo.h" | 16 #include "webkit/plugins/webplugininfo.h" |
| 16 | 17 |
| 17 class FilePath; | 18 class FilePath; |
| 18 class PluginExceptionsTableModelTest; | 19 class PluginExceptionsTableModelTest; |
| 19 class Version; | 20 class Version; |
| 20 | 21 |
| 21 namespace webkit { | 22 namespace webkit { |
| 22 namespace npapi { | 23 namespace npapi { |
| 23 | 24 |
| 24 class PluginList; | 25 class PluginList; |
| (...skipping 40 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 65 void InitFrom(const VersionRange& other); | 66 void InitFrom(const VersionRange& other); |
| 66 }; | 67 }; |
| 67 | 68 |
| 68 // A PluginGroup can match a range of versions of a specific plugin (as defined | 69 // A PluginGroup can match a range of versions of a specific plugin (as defined |
| 69 // by matching a substring of its name). | 70 // by matching a substring of its name). |
| 70 // It contains all WebPluginInfo structs (at least one) matching its definition. | 71 // It contains all WebPluginInfo structs (at least one) matching its definition. |
| 71 // In addition, it knows about a security "baseline", i.e. the minimum version | 72 // In addition, it knows about a security "baseline", i.e. the minimum version |
| 72 // of a plugin that is needed in order not to exhibit known security | 73 // of a plugin that is needed in order not to exhibit known security |
| 73 // vulnerabilities. | 74 // vulnerabilities. |
| 74 | 75 |
| 75 class PluginGroup { | 76 class WEBKIT_PLUGINS_EXPORT PluginGroup { |
| 76 public: | 77 public: |
| 77 // Used by about:plugins to disable Reader plugin when internal PDF viewer is | 78 // Used by about:plugins to disable Reader plugin when internal PDF viewer is |
| 78 // enabled. | 79 // enabled. |
| 79 static const char kAdobeReaderGroupName[]; | 80 static const char kAdobeReaderGroupName[]; |
| 80 static const char kAdobeReaderUpdateURL[]; | 81 static const char kAdobeReaderUpdateURL[]; |
| 81 static const char kJavaGroupName[]; | 82 static const char kJavaGroupName[]; |
| 82 static const char kQuickTimeGroupName[]; | 83 static const char kQuickTimeGroupName[]; |
| 83 static const char kShockwaveGroupName[]; | 84 static const char kShockwaveGroupName[]; |
| 84 static const char kRealPlayerGroupName[]; | 85 static const char kRealPlayerGroupName[]; |
| 85 static const char kSilverlightGroupName[]; | 86 static const char kSilverlightGroupName[]; |
| (...skipping 105 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 191 string16 name_matcher_; | 192 string16 name_matcher_; |
| 192 std::string update_url_; | 193 std::string update_url_; |
| 193 std::vector<VersionRange> version_ranges_; | 194 std::vector<VersionRange> version_ranges_; |
| 194 std::vector<webkit::WebPluginInfo> web_plugin_infos_; | 195 std::vector<webkit::WebPluginInfo> web_plugin_infos_; |
| 195 }; | 196 }; |
| 196 | 197 |
| 197 } // namespace npapi | 198 } // namespace npapi |
| 198 } // namespace webkit | 199 } // namespace webkit |
| 199 | 200 |
| 200 #endif // WEBKIT_PLUGINS_NPAPI_PLUGIN_GROUP_H_ | 201 #endif // WEBKIT_PLUGINS_NPAPI_PLUGIN_GROUP_H_ |
| OLD | NEW |