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