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 #pragma once | 7 #pragma once |
8 | 8 |
9 #include <map> | 9 #include <map> |
10 #include <set> | 10 #include <set> |
11 #include <string> | 11 #include <string> |
12 | 12 |
13 #include "base/basictypes.h" | 13 #include "base/basictypes.h" |
14 #include "base/memory/linked_ptr.h" | 14 #include "base/memory/linked_ptr.h" |
15 #include "base/memory/scoped_ptr.h" | 15 #include "base/memory/scoped_ptr.h" |
16 #include "base/memory/singleton.h" | 16 #include "base/memory/singleton.h" |
17 #include "base/string_piece.h" | 17 #include "base/string_piece.h" |
18 #include "base/values.h" | 18 #include "base/values.h" |
19 #include "chrome/common/extensions/feature.h" | 19 #include "chrome/common/extensions/feature.h" |
20 #include "chrome/common/extensions/feature_provider.h" | 20 #include "chrome/common/extensions/feature_provider.h" |
21 #include "chrome/common/extensions/url_pattern_set.h" | 21 #include "chrome/common/extensions/url_pattern_set.h" |
22 | 22 |
23 namespace base { | 23 namespace base { |
24 class DictionaryValue; | 24 class DictionaryValue; |
25 class ListValue; | 25 class ListValue; |
26 class Value; | 26 class Value; |
27 } | 27 } |
28 | 28 |
29 class GURL; | 29 class GURL; |
30 class Extension; | |
31 class ExtensionPermissionSet; | 30 class ExtensionPermissionSet; |
32 | 31 |
33 namespace extensions { | 32 namespace extensions { |
34 | 33 |
| 34 class Extension; |
35 class Feature; | 35 class Feature; |
36 | 36 |
37 // C++ Wrapper for the JSON API definitions in chrome/common/extensions/api/. | 37 // C++ Wrapper for the JSON API definitions in chrome/common/extensions/api/. |
38 // | 38 // |
39 // WARNING: This class is accessed on multiple threads in the browser process | 39 // WARNING: This class is accessed on multiple threads in the browser process |
40 // (see ExtensionFunctionDispatcher). No state should be modified after | 40 // (see ExtensionFunctionDispatcher). No state should be modified after |
41 // construction. | 41 // construction. |
42 class ExtensionAPI : public FeatureProvider { | 42 class ExtensionAPI : public FeatureProvider { |
43 public: | 43 public: |
44 // Returns a single shared instance of this class. This is the typical use | 44 // Returns a single shared instance of this class. This is the typical use |
(...skipping 137 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
182 // FeatureProviders used for resolving dependencies. | 182 // FeatureProviders used for resolving dependencies. |
183 typedef std::map<std::string, FeatureProvider*> FeatureProviderMap; | 183 typedef std::map<std::string, FeatureProvider*> FeatureProviderMap; |
184 FeatureProviderMap dependency_providers_; | 184 FeatureProviderMap dependency_providers_; |
185 | 185 |
186 DISALLOW_COPY_AND_ASSIGN(ExtensionAPI); | 186 DISALLOW_COPY_AND_ASSIGN(ExtensionAPI); |
187 }; | 187 }; |
188 | 188 |
189 } // extensions | 189 } // extensions |
190 | 190 |
191 #endif // CHROME_COMMON_EXTENSIONS_API_EXTENSION_API_H_ | 191 #endif // CHROME_COMMON_EXTENSIONS_API_EXTENSION_API_H_ |
OLD | NEW |