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