| 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 <set> | 8 #include <set> |
| 9 #include <string> | 9 #include <string> |
| 10 #include <vector> | 10 #include <vector> |
| 11 | 11 |
| 12 namespace extensions { | 12 namespace extensions { |
| 13 | 13 |
| 14 class APIPermissionSet; | 14 class APIPermissionSet; |
| 15 class Extension; | 15 class Extension; |
| 16 class FeatureProvider; | 16 class FeatureProvider; |
| 17 class ManifestPermisionSet; |
| 17 class PermissionMessage; | 18 class PermissionMessage; |
| 18 class PermissionMessageProvider; | 19 class PermissionMessageProvider; |
| 19 class PermissionsProvider; | 20 class PermissionsProvider; |
| 20 class URLPatternSet; | 21 class URLPatternSet; |
| 21 | 22 |
| 22 // Sets up global state for the extensions system. Should be Set() once in each | 23 // Sets up global state for the extensions system. Should be Set() once in each |
| 23 // process. This should be implemented by the client of the extensions system. | 24 // process. This should be implemented by the client of the extensions system. |
| 24 class ExtensionsClient { | 25 class ExtensionsClient { |
| 25 public: | 26 public: |
| 26 typedef std::vector<std::string> ScriptingWhitelist; | 27 typedef std::vector<std::string> ScriptingWhitelist; |
| (...skipping 39 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 66 // Return the extensions client. | 67 // Return the extensions client. |
| 67 static ExtensionsClient* Get(); | 68 static ExtensionsClient* Get(); |
| 68 | 69 |
| 69 // Initialize the extensions system with this extensions client. | 70 // Initialize the extensions system with this extensions client. |
| 70 static void Set(ExtensionsClient* client); | 71 static void Set(ExtensionsClient* client); |
| 71 }; | 72 }; |
| 72 | 73 |
| 73 } // namespace extensions | 74 } // namespace extensions |
| 74 | 75 |
| 75 #endif // EXTENSIONS_COMMON_EXTENSIONS_CLIENT_H_ | 76 #endif // EXTENSIONS_COMMON_EXTENSIONS_CLIENT_H_ |
| OLD | NEW |