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/webplugininfo.h" | 15 #include "webkit/plugins/webplugininfo.h" |
16 | 16 |
17 class FilePath; | 17 class FilePath; |
18 class PluginExceptionsTableModelTest; | 18 class PluginExceptionsTableModelTest; |
19 class Version; | 19 class Version; |
20 | 20 |
21 namespace base { | |
22 class DictionaryValue; | |
23 } | |
24 | |
25 namespace webkit { | 21 namespace webkit { |
26 namespace npapi { | 22 namespace npapi { |
27 | 23 |
28 class PluginList; | 24 class PluginList; |
29 class MockPluginList; | 25 class MockPluginList; |
30 | 26 |
31 // Hard-coded version ranges for plugin groups. | 27 // Hard-coded version ranges for plugin groups. |
32 struct VersionRangeDefinition { | 28 struct VersionRangeDefinition { |
33 // Matcher for lowest version matched by this range (inclusive). May be empty | 29 // Matcher for lowest version matched by this range (inclusive). May be empty |
34 // to match everything iff |version_matcher_high| is also empty. | 30 // to match everything iff |version_matcher_high| is also empty. |
(...skipping 160 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
195 string16 name_matcher_; | 191 string16 name_matcher_; |
196 std::string update_url_; | 192 std::string update_url_; |
197 std::vector<VersionRange> version_ranges_; | 193 std::vector<VersionRange> version_ranges_; |
198 std::vector<webkit::WebPluginInfo> web_plugin_infos_; | 194 std::vector<webkit::WebPluginInfo> web_plugin_infos_; |
199 }; | 195 }; |
200 | 196 |
201 } // namespace npapi | 197 } // namespace npapi |
202 } // namespace webkit | 198 } // namespace webkit |
203 | 199 |
204 #endif // WEBKIT_PLUGINS_NPAPI_PLUGIN_GROUP_H_ | 200 #endif // WEBKIT_PLUGINS_NPAPI_PLUGIN_GROUP_H_ |
OLD | NEW |