OLD | NEW |
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 Loading... |
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_ |
OLD | NEW |