| 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 56 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 67 enum AvailabilityResult { | 67 enum AvailabilityResult { |
| 68 IS_AVAILABLE, | 68 IS_AVAILABLE, |
| 69 NOT_FOUND_IN_WHITELIST, | 69 NOT_FOUND_IN_WHITELIST, |
| 70 INVALID_URL, | 70 INVALID_URL, |
| 71 INVALID_TYPE, | 71 INVALID_TYPE, |
| 72 INVALID_CONTEXT, | 72 INVALID_CONTEXT, |
| 73 INVALID_LOCATION, | 73 INVALID_LOCATION, |
| 74 INVALID_PLATFORM, | 74 INVALID_PLATFORM, |
| 75 INVALID_MIN_MANIFEST_VERSION, | 75 INVALID_MIN_MANIFEST_VERSION, |
| 76 INVALID_MAX_MANIFEST_VERSION, | 76 INVALID_MAX_MANIFEST_VERSION, |
| 77 INVALID_SESSION_TYPE, |
| 77 NOT_PRESENT, | 78 NOT_PRESENT, |
| 78 UNSUPPORTED_CHANNEL, | 79 UNSUPPORTED_CHANNEL, |
| 79 FOUND_IN_BLACKLIST, | 80 FOUND_IN_BLACKLIST, |
| 80 MISSING_COMMAND_LINE_SWITCH, | 81 MISSING_COMMAND_LINE_SWITCH, |
| 81 }; | 82 }; |
| 82 | 83 |
| 83 // Container for AvailabiltyResult that also exposes a user-visible error | 84 // Container for AvailabiltyResult that also exposes a user-visible error |
| 84 // message in cases where the feature is not available. | 85 // message in cases where the feature is not available. |
| 85 class Availability { | 86 class Availability { |
| 86 public: | 87 public: |
| (...skipping 76 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 163 protected: | 164 protected: |
| 164 std::string name_; | 165 std::string name_; |
| 165 bool no_parent_; | 166 bool no_parent_; |
| 166 // TODO(devlin): Remove this once we set the feature channel for tests. | 167 // TODO(devlin): Remove this once we set the feature channel for tests. |
| 167 bool check_channel_; | 168 bool check_channel_; |
| 168 }; | 169 }; |
| 169 | 170 |
| 170 } // namespace extensions | 171 } // namespace extensions |
| 171 | 172 |
| 172 #endif // EXTENSIONS_COMMON_FEATURES_FEATURE_H_ | 173 #endif // EXTENSIONS_COMMON_FEATURES_FEATURE_H_ |
| OLD | NEW |