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

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

Issue 2165023003: [Extensions] Use compiled feature files (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Test fixes Created 4 years, 5 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 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 <memory> 10 #include <memory>
(...skipping 111 matching lines...) Expand 10 before | Expand all | Expand 10 after
122 } 122 }
123 void set_internal(bool is_internal) { is_internal_ = is_internal; } 123 void set_internal(bool is_internal) { is_internal_ = is_internal; }
124 void set_location(Location location) { location_ = location; } 124 void set_location(Location location) { location_ = location; }
125 void set_matches(const std::vector<std::string>& matches); 125 void set_matches(const std::vector<std::string>& matches);
126 void set_max_manifest_version(int max_manifest_version) { 126 void set_max_manifest_version(int max_manifest_version) {
127 max_manifest_version_ = max_manifest_version; 127 max_manifest_version_ = max_manifest_version;
128 } 128 }
129 void set_min_manifest_version(int min_manifest_version) { 129 void set_min_manifest_version(int min_manifest_version) {
130 min_manifest_version_ = min_manifest_version; 130 min_manifest_version_ = min_manifest_version;
131 } 131 }
132 void set_noparent(bool no_parent) { no_parent_ = no_parent; }
132 void set_platforms(const std::vector<Platform>& platforms) { 133 void set_platforms(const std::vector<Platform>& platforms) {
133 platforms_ = platforms; 134 platforms_ = platforms;
134 } 135 }
135 void set_whitelist(const std::vector<std::string>& whitelist) { 136 void set_whitelist(const std::vector<std::string>& whitelist) {
136 whitelist_ = whitelist; 137 whitelist_ = whitelist;
137 } 138 }
138 139
139 protected: 140 protected:
140 // Accessors used by subclasses in feature verification. 141 // Accessors used by subclasses in feature verification.
141 const std::vector<std::string>& blacklist() const { return blacklist_; } 142 const std::vector<std::string>& blacklist() const { return blacklist_; }
(...skipping 95 matching lines...) Expand 10 before | Expand all | Expand 10 after
237 bool is_internal_; 238 bool is_internal_;
238 std::string command_line_switch_; 239 std::string command_line_switch_;
239 std::unique_ptr<version_info::Channel> channel_; 240 std::unique_ptr<version_info::Channel> channel_;
240 241
241 DISALLOW_COPY_AND_ASSIGN(SimpleFeature); 242 DISALLOW_COPY_AND_ASSIGN(SimpleFeature);
242 }; 243 };
243 244
244 } // namespace extensions 245 } // namespace extensions
245 246
246 #endif // EXTENSIONS_COMMON_FEATURES_SIMPLE_FEATURE_H_ 247 #endif // EXTENSIONS_COMMON_FEATURES_SIMPLE_FEATURE_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698