| 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; | |
| 81 | 79 |
| 82 static bool IsIdInArray(const std::string& extension_id, | 80 static bool IsIdInArray(const std::string& extension_id, |
| 83 const char* const array[], | 81 const char* const array[], |
| 84 size_t array_length); | 82 size_t array_length); |
| 85 | 83 |
| 86 // Similar to Manifest::Location, these are the classes of locations | 84 // Similar to Manifest::Location, these are the classes of locations |
| 87 // supported in feature files. These should only be used in this class and in | 85 // supported in feature files. These should only be used in this class and in |
| 88 // generated files. | 86 // generated files. |
| 89 enum Location { | 87 enum Location { |
| 90 UNSPECIFIED_LOCATION, | 88 UNSPECIFIED_LOCATION, |
| (...skipping 145 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 236 bool is_internal_; | 234 bool is_internal_; |
| 237 std::string command_line_switch_; | 235 std::string command_line_switch_; |
| 238 std::unique_ptr<version_info::Channel> channel_; | 236 std::unique_ptr<version_info::Channel> channel_; |
| 239 | 237 |
| 240 DISALLOW_COPY_AND_ASSIGN(SimpleFeature); | 238 DISALLOW_COPY_AND_ASSIGN(SimpleFeature); |
| 241 }; | 239 }; |
| 242 | 240 |
| 243 } // namespace extensions | 241 } // namespace extensions |
| 244 | 242 |
| 245 #endif // EXTENSIONS_COMMON_FEATURES_SIMPLE_FEATURE_H_ | 243 #endif // EXTENSIONS_COMMON_FEATURES_SIMPLE_FEATURE_H_ |
| OLD | NEW |