Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(117)

Side by Side Diff: extensions/common/features/feature.h

Issue 2255613003: Introduce session type parameter to extension features (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Introduce session type parameter to extension features Created 4 years, 3 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
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 43 matching lines...) Expand 10 before | Expand all | Expand 10 after
54 enum AvailabilityResult { 54 enum AvailabilityResult {
55 IS_AVAILABLE, 55 IS_AVAILABLE,
56 NOT_FOUND_IN_WHITELIST, 56 NOT_FOUND_IN_WHITELIST,
57 INVALID_URL, 57 INVALID_URL,
58 INVALID_TYPE, 58 INVALID_TYPE,
59 INVALID_CONTEXT, 59 INVALID_CONTEXT,
60 INVALID_LOCATION, 60 INVALID_LOCATION,
61 INVALID_PLATFORM, 61 INVALID_PLATFORM,
62 INVALID_MIN_MANIFEST_VERSION, 62 INVALID_MIN_MANIFEST_VERSION,
63 INVALID_MAX_MANIFEST_VERSION, 63 INVALID_MAX_MANIFEST_VERSION,
64 INVALID_SESSION_TYPE,
64 NOT_PRESENT, 65 NOT_PRESENT,
65 UNSUPPORTED_CHANNEL, 66 UNSUPPORTED_CHANNEL,
66 FOUND_IN_BLACKLIST, 67 FOUND_IN_BLACKLIST,
67 MISSING_COMMAND_LINE_SWITCH, 68 MISSING_COMMAND_LINE_SWITCH,
68 }; 69 };
69 70
70 // Container for AvailabiltyResult that also exposes a user-visible error 71 // Container for AvailabiltyResult that also exposes a user-visible error
71 // message in cases where the feature is not available. 72 // message in cases where the feature is not available.
72 class Availability { 73 class Availability {
73 public: 74 public:
(...skipping 76 matching lines...) Expand 10 before | Expand all | Expand 10 after
150 protected: 151 protected:
151 std::string name_; 152 std::string name_;
152 bool no_parent_; 153 bool no_parent_;
153 // TODO(devlin): Remove this once we set the feature channel for tests. 154 // TODO(devlin): Remove this once we set the feature channel for tests.
154 bool check_channel_; 155 bool check_channel_;
155 }; 156 };
156 157
157 } // namespace extensions 158 } // namespace extensions
158 159
159 #endif // EXTENSIONS_COMMON_FEATURES_FEATURE_H_ 160 #endif // EXTENSIONS_COMMON_FEATURES_FEATURE_H_
OLDNEW
« no previous file with comments | « chrome/test/data/extensions/extension_api_unittest/api_features.json ('k') | extensions/common/features/simple_feature.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698