| OLD | NEW |
| 1 // Copyright 2013 The Chromium Authors. All rights reserved. | 1 // Copyright 2013 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 EXTENSIONS_COMMON_EXTENSIONS_CLIENT_H_ | 5 #ifndef EXTENSIONS_COMMON_EXTENSIONS_CLIENT_H_ |
| 6 #define EXTENSIONS_COMMON_EXTENSIONS_CLIENT_H_ | 6 #define EXTENSIONS_COMMON_EXTENSIONS_CLIENT_H_ |
| 7 | 7 |
| 8 #include <memory> | 8 #include <memory> |
| 9 #include <set> | 9 #include <set> |
| 10 #include <string> | 10 #include <string> |
| 11 #include <vector> | 11 #include <vector> |
| 12 | 12 |
| 13 #include "base/strings/string_piece.h" | 13 #include "base/strings/string_piece.h" |
| 14 #include "extensions/common/permissions/api_permission_set.h" | 14 #include "extensions/common/permissions/api_permission_set.h" |
| 15 | 15 |
| 16 class GURL; | 16 class GURL; |
| 17 | 17 |
| 18 namespace base { | 18 namespace base { |
| 19 class FilePath; | 19 class FilePath; |
| 20 } | 20 } |
| 21 | 21 |
| 22 namespace extensions { | 22 namespace extensions { |
| 23 | 23 |
| 24 class APIPermissionSet; | 24 class APIPermissionSet; |
| 25 class Extension; | 25 class Extension; |
| 26 class ExtensionAPI; | |
| 27 class FeatureProvider; | 26 class FeatureProvider; |
| 28 class JSONFeatureProviderSource; | 27 class JSONFeatureProviderSource; |
| 29 class ManifestPermissionSet; | |
| 30 class PermissionMessage; | |
| 31 class PermissionMessageProvider; | 28 class PermissionMessageProvider; |
| 32 class SimpleFeature; | |
| 33 class URLPatternSet; | 29 class URLPatternSet; |
| 34 | 30 |
| 35 // Sets up global state for the extensions system. Should be Set() once in each | 31 // Sets up global state for the extensions system. Should be Set() once in each |
| 36 // process. This should be implemented by the client of the extensions system. | 32 // process. This should be implemented by the client of the extensions system. |
| 37 class ExtensionsClient { | 33 class ExtensionsClient { |
| 38 public: | 34 public: |
| 39 typedef std::vector<std::string> ScriptingWhitelist; | 35 typedef std::vector<std::string> ScriptingWhitelist; |
| 40 | 36 |
| 41 virtual ~ExtensionsClient() {} | 37 virtual ~ExtensionsClient() {} |
| 42 | 38 |
| (...skipping 92 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 135 // Return the extensions client. | 131 // Return the extensions client. |
| 136 static ExtensionsClient* Get(); | 132 static ExtensionsClient* Get(); |
| 137 | 133 |
| 138 // Initialize the extensions system with this extensions client. | 134 // Initialize the extensions system with this extensions client. |
| 139 static void Set(ExtensionsClient* client); | 135 static void Set(ExtensionsClient* client); |
| 140 }; | 136 }; |
| 141 | 137 |
| 142 } // namespace extensions | 138 } // namespace extensions |
| 143 | 139 |
| 144 #endif // EXTENSIONS_COMMON_EXTENSIONS_CLIENT_H_ | 140 #endif // EXTENSIONS_COMMON_EXTENSIONS_CLIENT_H_ |
| OLD | NEW |