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

Side by Side Diff: chrome/common/extensions/api/extension_api.h

Issue 14730002: Remove features code from ExtensionAPI (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: add CHECK back Created 7 years, 7 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 | « no previous file | chrome/common/extensions/api/extension_api.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_API_EXTENSION_API_H_ 5 #ifndef CHROME_COMMON_EXTENSIONS_API_EXTENSION_API_H_
6 #define CHROME_COMMON_EXTENSIONS_API_EXTENSION_API_H_ 6 #define CHROME_COMMON_EXTENSIONS_API_EXTENSION_API_H_
7 7
8 #include <map> 8 #include <map>
9 #include <set> 9 #include <set>
10 #include <string> 10 #include <string>
(...skipping 135 matching lines...) Expand 10 before | Expand all | Expand 10 after
146 // Schemas for each namespace. 146 // Schemas for each namespace.
147 typedef std::map<std::string, linked_ptr<const DictionaryValue> > SchemaMap; 147 typedef std::map<std::string, linked_ptr<const DictionaryValue> > SchemaMap;
148 SchemaMap schemas_; 148 SchemaMap schemas_;
149 149
150 // APIs that are entirely unprivileged. 150 // APIs that are entirely unprivileged.
151 std::set<std::string> completely_unprivileged_apis_; 151 std::set<std::string> completely_unprivileged_apis_;
152 152
153 // APIs that are not entirely unprivileged, but have unprivileged components. 153 // APIs that are not entirely unprivileged, but have unprivileged components.
154 std::set<std::string> partially_unprivileged_apis_; 154 std::set<std::string> partially_unprivileged_apis_;
155 155
156 // APIs that have URL matching permissions.
157 std::map<std::string, URLPatternSet> url_matching_apis_;
158
159 typedef std::map<std::string, linked_ptr<Feature> > FeatureMap;
160 typedef std::map<std::string, linked_ptr<FeatureMap> > APIFeatureMap;
161 APIFeatureMap features_;
162
163 // FeatureProviders used for resolving dependencies. 156 // FeatureProviders used for resolving dependencies.
164 typedef std::map<std::string, FeatureProvider*> FeatureProviderMap; 157 typedef std::map<std::string, FeatureProvider*> FeatureProviderMap;
165 FeatureProviderMap dependency_providers_; 158 FeatureProviderMap dependency_providers_;
166 159
167 DISALLOW_COPY_AND_ASSIGN(ExtensionAPI); 160 DISALLOW_COPY_AND_ASSIGN(ExtensionAPI);
168 }; 161 };
169 162
170 } // extensions 163 } // extensions
171 164
172 #endif // CHROME_COMMON_EXTENSIONS_API_EXTENSION_API_H_ 165 #endif // CHROME_COMMON_EXTENSIONS_API_EXTENSION_API_H_
OLDNEW
« no previous file with comments | « no previous file | chrome/common/extensions/api/extension_api.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698