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

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

Issue 2705513002: Extensions: Only create Web request rules registry if Declarative Web Request is enabled. (Closed)
Patch Set: Correct comment. Created 3 years, 10 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
« no previous file with comments | « extensions/common/features/feature.h ('k') | extensions/common/features/simple_feature.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 <initializer_list> 10 #include <initializer_list>
(...skipping 58 matching lines...) Expand 10 before | Expand all | Expand 10 after
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;
79 81
80 static bool IsIdInArray(const std::string& extension_id, 82 static bool IsIdInArray(const std::string& extension_id,
81 const char* const array[], 83 const char* const array[],
82 size_t array_length); 84 size_t array_length);
83 85
84 // Similar to Manifest::Location, these are the classes of locations 86 // Similar to Manifest::Location, these are the classes of locations
85 // supported in feature files. These should only be used in this class and in 87 // supported in feature files. These should only be used in this class and in
86 // generated files. 88 // generated files.
87 enum Location { 89 enum Location {
88 UNSPECIFIED_LOCATION, 90 UNSPECIFIED_LOCATION,
(...skipping 145 matching lines...) Expand 10 before | Expand all | Expand 10 after
234 bool is_internal_; 236 bool is_internal_;
235 std::string command_line_switch_; 237 std::string command_line_switch_;
236 std::unique_ptr<version_info::Channel> channel_; 238 std::unique_ptr<version_info::Channel> channel_;
237 239
238 DISALLOW_COPY_AND_ASSIGN(SimpleFeature); 240 DISALLOW_COPY_AND_ASSIGN(SimpleFeature);
239 }; 241 };
240 242
241 } // namespace extensions 243 } // namespace extensions
242 244
243 #endif // EXTENSIONS_COMMON_FEATURES_SIMPLE_FEATURE_H_ 245 #endif // EXTENSIONS_COMMON_FEATURES_SIMPLE_FEATURE_H_
OLDNEW
« no previous file with comments | « extensions/common/features/feature.h ('k') | extensions/common/features/simple_feature.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698