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> |
(...skipping 58 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
69 // by matching a substring of its name). | 69 // by matching a substring of its name). |
70 // It contains all WebPluginInfo structs (at least one) matching its definition. | 70 // 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 | 71 // 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 | 72 // of a plugin that is needed in order not to exhibit known security |
73 // vulnerabilities. | 73 // vulnerabilities. |
74 | 74 |
75 class PluginGroup { | 75 class PluginGroup { |
76 public: | 76 public: |
77 // Used by about:plugins to disable Reader plugin when internal PDF viewer is | 77 // Used by about:plugins to disable Reader plugin when internal PDF viewer is |
78 // enabled. | 78 // enabled. |
79 static const char* kAdobeReaderGroupName; | 79 static const char kAdobeReaderGroupName[]; |
80 static const char* kAdobeReaderUpdateURL; | 80 static const char kAdobeReaderUpdateURL[]; |
81 static const char* kJavaGroupName; | 81 static const char kJavaGroupName[]; |
82 static const char* kQuickTimeGroupName; | 82 static const char kQuickTimeGroupName[]; |
83 static const char* kShockwaveGroupName; | 83 static const char kShockwaveGroupName[]; |
84 static const char* kRealPlayerGroupName; | 84 static const char kRealPlayerGroupName[]; |
85 static const char* kSilverlightGroupName; | 85 static const char kSilverlightGroupName[]; |
86 static const char* kWindowsMediaPlayerGroupName; | 86 static const char kWindowsMediaPlayerGroupName[]; |
87 | 87 |
88 PluginGroup(const PluginGroup& other); | 88 PluginGroup(const PluginGroup& other); |
89 | 89 |
90 ~PluginGroup(); | 90 ~PluginGroup(); |
91 | 91 |
92 PluginGroup& operator=(const PluginGroup& other); | 92 PluginGroup& operator=(const PluginGroup& other); |
93 | 93 |
94 // Returns true if the given plugin matches this group. | 94 // Returns true if the given plugin matches this group. |
95 bool Match(const webkit::WebPluginInfo& plugin) const; | 95 bool Match(const webkit::WebPluginInfo& plugin) const; |
96 | 96 |
(...skipping 94 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
191 string16 name_matcher_; | 191 string16 name_matcher_; |
192 std::string update_url_; | 192 std::string update_url_; |
193 std::vector<VersionRange> version_ranges_; | 193 std::vector<VersionRange> version_ranges_; |
194 std::vector<webkit::WebPluginInfo> web_plugin_infos_; | 194 std::vector<webkit::WebPluginInfo> web_plugin_infos_; |
195 }; | 195 }; |
196 | 196 |
197 } // namespace npapi | 197 } // namespace npapi |
198 } // namespace webkit | 198 } // namespace webkit |
199 | 199 |
200 #endif // WEBKIT_PLUGINS_NPAPI_PLUGIN_GROUP_H_ | 200 #endif // WEBKIT_PLUGINS_NPAPI_PLUGIN_GROUP_H_ |
OLD | NEW |