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

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

Issue 23257005: Move Feature and Manifest to top-level extensions. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: rebase Created 7 years, 4 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 | Annotate | Revision Log
« no previous file with comments | « chrome/utility/extensions/unpacker.cc ('k') | extensions/common/features/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 (c) 2012 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2012 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 CHROME_COMMON_EXTENSIONS_FEATURES_FEATURE_H_ 5 #ifndef EXTENSIONS_COMMON_FEATURES_FEATURE_H_
6 #define CHROME_COMMON_EXTENSIONS_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
11 #include "base/values.h" 11 #include "base/values.h"
12 #include "chrome/common/extensions/manifest.h" 12 #include "extensions/common/manifest.h"
13 13
14 class GURL; 14 class GURL;
15 15
16 namespace extensions { 16 namespace extensions {
17 17
18 class Extension; 18 class Extension;
19 19
20 // Represents a single feature accessible to an extension developer, such as a 20 // Represents a single feature accessible to an extension developer, such as a
21 // top-level manifest key, a permission, or a programmatic API. A feature can 21 // top-level manifest key, a permission, or a programmatic API. A feature can
22 // express requirements for where it can be accessed, and supports testing 22 // express requirements for where it can be accessed, and supports testing
(...skipping 122 matching lines...) Expand 10 before | Expand all | Expand 10 after
145 virtual bool IsIdInWhitelist(const std::string& extension_id) const = 0; 145 virtual bool IsIdInWhitelist(const std::string& extension_id) const = 0;
146 146
147 protected: 147 protected:
148 std::string name_; 148 std::string name_;
149 std::set<std::string> dependencies_; 149 std::set<std::string> dependencies_;
150 bool no_parent_; 150 bool no_parent_;
151 }; 151 };
152 152
153 } // namespace extensions 153 } // namespace extensions
154 154
155 #endif // CHROME_COMMON_EXTENSIONS_FEATURES_FEATURE_H_ 155 #endif // EXTENSIONS_COMMON_FEATURES_FEATURE_H_
OLDNEW
« no previous file with comments | « chrome/utility/extensions/unpacker.cc ('k') | extensions/common/features/feature.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698