OLD | NEW |
1 // Copyright (c) 2010 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2010 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 CHROME_COMMON_PLUGIN_GROUP_H_ | 5 #ifndef CHROME_COMMON_PLUGIN_GROUP_H_ |
6 #define CHROME_COMMON_PLUGIN_GROUP_H_ | 6 #define CHROME_COMMON_PLUGIN_GROUP_H_ |
7 #pragma once | 7 #pragma once |
8 | 8 |
9 #include <set> | 9 #include <set> |
10 #include <vector> | 10 #include <vector> |
11 | 11 |
| 12 #include "base/gtest_prod_util.h" |
12 #include "base/linked_ptr.h" | 13 #include "base/linked_ptr.h" |
13 #include "base/scoped_ptr.h" | 14 #include "base/scoped_ptr.h" |
14 #include "base/string16.h" | 15 #include "base/string16.h" |
15 #include "base/version.h" | |
16 #include "webkit/glue/plugins/webplugininfo.h" | 16 #include "webkit/glue/plugins/webplugininfo.h" |
17 | 17 |
18 class DictionaryValue; | 18 class DictionaryValue; |
| 19 class Version; |
19 | 20 |
20 // Hard-coded definitions of plugin groups. | 21 // Hard-coded definitions of plugin groups. |
21 struct PluginGroupDefinition { | 22 struct PluginGroupDefinition { |
22 const char* name; // Name of this group. | 23 const char* name; // Name of this group. |
23 const char* name_matcher; // Substring matcher for the plugin name. | 24 const char* name_matcher; // Substring matcher for the plugin name. |
24 const char* version_matcher_low; // Matchers for the plugin version. | 25 const char* version_matcher_low; // Matchers for the plugin version. |
25 const char* version_matcher_high; | 26 const char* version_matcher_high; |
26 const char* min_version; // Minimum secure version. | 27 const char* min_version; // Minimum secure version. |
27 const char* update_url; // Location of latest secure version. | 28 const char* update_url; // Location of latest secure version. |
28 }; | 29 }; |
(...skipping 92 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
121 std::string min_version_str_; | 122 std::string min_version_str_; |
122 scoped_ptr<Version> min_version_; | 123 scoped_ptr<Version> min_version_; |
123 scoped_ptr<Version> max_version_; | 124 scoped_ptr<Version> max_version_; |
124 std::vector<WebPluginInfo> web_plugin_infos_; | 125 std::vector<WebPluginInfo> web_plugin_infos_; |
125 std::vector<int> web_plugin_positions_; | 126 std::vector<int> web_plugin_positions_; |
126 | 127 |
127 DISALLOW_COPY_AND_ASSIGN(PluginGroup); | 128 DISALLOW_COPY_AND_ASSIGN(PluginGroup); |
128 }; | 129 }; |
129 | 130 |
130 #endif // CHROME_COMMON_PLUGIN_GROUP_H_ | 131 #endif // CHROME_COMMON_PLUGIN_GROUP_H_ |
OLD | NEW |