OLD | NEW |
1 // Copyright 2013 The Chromium Authors. All rights reserved. | 1 // Copyright 2013 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_FEATURE_H_ | 5 #ifndef EXTENSIONS_COMMON_FEATURES_FEATURE_H_ |
6 #define EXTENSIONS_COMMON_FEATURES_FEATURE_H_ | 6 #define EXTENSIONS_COMMON_FEATURES_FEATURE_H_ |
7 | 7 |
8 #include <set> | 8 #include <set> |
9 #include <string> | 9 #include <string> |
10 | 10 |
(...skipping 69 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
80 enum AvailabilityResult { | 80 enum AvailabilityResult { |
81 IS_AVAILABLE, | 81 IS_AVAILABLE, |
82 NOT_FOUND_IN_WHITELIST, | 82 NOT_FOUND_IN_WHITELIST, |
83 INVALID_URL, | 83 INVALID_URL, |
84 INVALID_TYPE, | 84 INVALID_TYPE, |
85 INVALID_CONTEXT, | 85 INVALID_CONTEXT, |
86 INVALID_LOCATION, | 86 INVALID_LOCATION, |
87 INVALID_PLATFORM, | 87 INVALID_PLATFORM, |
88 INVALID_MIN_MANIFEST_VERSION, | 88 INVALID_MIN_MANIFEST_VERSION, |
89 INVALID_MAX_MANIFEST_VERSION, | 89 INVALID_MAX_MANIFEST_VERSION, |
| 90 INVALID_SESSION_TYPE, |
90 NOT_PRESENT, | 91 NOT_PRESENT, |
91 UNSUPPORTED_CHANNEL, | 92 UNSUPPORTED_CHANNEL, |
92 FOUND_IN_BLACKLIST, | 93 FOUND_IN_BLACKLIST, |
93 MISSING_COMMAND_LINE_SWITCH, | 94 MISSING_COMMAND_LINE_SWITCH, |
94 }; | 95 }; |
95 | 96 |
96 // Container for AvailabiltyResult that also exposes a user-visible error | 97 // Container for AvailabiltyResult that also exposes a user-visible error |
97 // message in cases where the feature is not available. | 98 // message in cases where the feature is not available. |
98 class Availability { | 99 class Availability { |
99 public: | 100 public: |
(...skipping 79 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
179 protected: | 180 protected: |
180 std::string name_; | 181 std::string name_; |
181 bool no_parent_; | 182 bool no_parent_; |
182 // TODO(devlin): Remove this once we set the feature channel for tests. | 183 // TODO(devlin): Remove this once we set the feature channel for tests. |
183 bool check_channel_; | 184 bool check_channel_; |
184 }; | 185 }; |
185 | 186 |
186 } // namespace extensions | 187 } // namespace extensions |
187 | 188 |
188 #endif // EXTENSIONS_COMMON_FEATURES_FEATURE_H_ | 189 #endif // EXTENSIONS_COMMON_FEATURES_FEATURE_H_ |
OLD | NEW |