OLD | NEW |
1 // Copyright 2014 The Chromium Authors. All rights reserved. | 1 // Copyright 2014 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 EXTENSIONS_COMMON_FEATURES_SIMPLE_FEATURE_H_ | 5 #ifndef EXTENSIONS_COMMON_FEATURES_SIMPLE_FEATURE_H_ |
6 #define EXTENSIONS_COMMON_FEATURES_SIMPLE_FEATURE_H_ | 6 #define EXTENSIONS_COMMON_FEATURES_SIMPLE_FEATURE_H_ |
7 | 7 |
8 #include <stddef.h> | 8 #include <stddef.h> |
9 | 9 |
10 #include <initializer_list> | 10 #include <initializer_list> |
(...skipping 58 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
69 Manifest::Location location, | 69 Manifest::Location location, |
70 int manifest_version, | 70 int manifest_version, |
71 Platform platform) const override; | 71 Platform platform) const override; |
72 Availability IsAvailableToContext(const Extension* extension, | 72 Availability IsAvailableToContext(const Extension* extension, |
73 Context context, | 73 Context context, |
74 const GURL& url, | 74 const GURL& url, |
75 Platform platform) const override; | 75 Platform platform) const override; |
76 bool IsInternal() const override; | 76 bool IsInternal() const override; |
77 bool IsIdInBlacklist(const std::string& extension_id) const override; | 77 bool IsIdInBlacklist(const std::string& extension_id) const override; |
78 bool IsIdInWhitelist(const std::string& extension_id) const override; | 78 bool IsIdInWhitelist(const std::string& extension_id) const override; |
| 79 Availability IsAvailableToChannel( |
| 80 version_info::Channel channel) const override; |
79 | 81 |
80 static bool IsIdInArray(const std::string& extension_id, | 82 static bool IsIdInArray(const std::string& extension_id, |
81 const char* const array[], | 83 const char* const array[], |
82 size_t array_length); | 84 size_t array_length); |
83 | 85 |
84 // Similar to Manifest::Location, these are the classes of locations | 86 // Similar to Manifest::Location, these are the classes of locations |
85 // supported in feature files. These should only be used in this class and in | 87 // supported in feature files. These should only be used in this class and in |
86 // generated files. | 88 // generated files. |
87 enum Location { | 89 enum Location { |
88 UNSPECIFIED_LOCATION, | 90 UNSPECIFIED_LOCATION, |
(...skipping 145 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
234 bool is_internal_; | 236 bool is_internal_; |
235 std::string command_line_switch_; | 237 std::string command_line_switch_; |
236 std::unique_ptr<version_info::Channel> channel_; | 238 std::unique_ptr<version_info::Channel> channel_; |
237 | 239 |
238 DISALLOW_COPY_AND_ASSIGN(SimpleFeature); | 240 DISALLOW_COPY_AND_ASSIGN(SimpleFeature); |
239 }; | 241 }; |
240 | 242 |
241 } // namespace extensions | 243 } // namespace extensions |
242 | 244 |
243 #endif // EXTENSIONS_COMMON_FEATURES_SIMPLE_FEATURE_H_ | 245 #endif // EXTENSIONS_COMMON_FEATURES_SIMPLE_FEATURE_H_ |
OLD | NEW |