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 WEBKIT_GLUE_PLUGINS_PLUGIN_GROUP_H_ | 5 #ifndef WEBKIT_GLUE_PLUGINS_PLUGIN_GROUP_H_ |
6 #define WEBKIT_GLUE_PLUGINS_PLUGIN_GROUP_H_ | 6 #define WEBKIT_GLUE_PLUGINS_PLUGIN_GROUP_H_ |
7 #pragma once | 7 #pragma once |
8 | 8 |
9 #include <map> | 9 #include <map> |
10 #include <set> | 10 #include <set> |
(...skipping 33 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
44 const size_t num_versions; // Size of the array |versions| points to. | 44 const size_t num_versions; // Size of the array |versions| points to. |
45 const char* update_url; // Location of latest secure version. | 45 const char* update_url; // Location of latest secure version. |
46 }; | 46 }; |
47 | 47 |
48 // Run-time structure to hold version range information. | 48 // Run-time structure to hold version range information. |
49 struct VersionRange { | 49 struct VersionRange { |
50 public: | 50 public: |
51 explicit VersionRange(VersionRangeDefinition definition); | 51 explicit VersionRange(VersionRangeDefinition definition); |
52 VersionRange(const VersionRange& other); | 52 VersionRange(const VersionRange& other); |
53 VersionRange& operator=(const VersionRange& other); | 53 VersionRange& operator=(const VersionRange& other); |
| 54 ~VersionRange(); |
54 | 55 |
55 std::string low_str; | 56 std::string low_str; |
56 std::string high_str; | 57 std::string high_str; |
57 std::string min_str; | 58 std::string min_str; |
58 scoped_ptr<Version> low; | 59 scoped_ptr<Version> low; |
59 scoped_ptr<Version> high; | 60 scoped_ptr<Version> high; |
60 scoped_ptr<Version> min; | 61 scoped_ptr<Version> min; |
61 private: | 62 private: |
62 void InitFrom(const VersionRange& other); | 63 void InitFrom(const VersionRange& other); |
63 }; | 64 }; |
(...skipping 129 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
193 string16 description_; | 194 string16 description_; |
194 std::string update_url_; | 195 std::string update_url_; |
195 bool enabled_; | 196 bool enabled_; |
196 std::vector<VersionRange> version_ranges_; | 197 std::vector<VersionRange> version_ranges_; |
197 scoped_ptr<Version> version_; | 198 scoped_ptr<Version> version_; |
198 std::vector<WebPluginInfo> web_plugin_infos_; | 199 std::vector<WebPluginInfo> web_plugin_infos_; |
199 std::vector<int> web_plugin_positions_; | 200 std::vector<int> web_plugin_positions_; |
200 }; | 201 }; |
201 | 202 |
202 #endif // WEBKIT_GLUE_PLUGINS_PLUGIN_GROUP_H_ | 203 #endif // WEBKIT_GLUE_PLUGINS_PLUGIN_GROUP_H_ |
OLD | NEW |