| 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 #include "base/memory/scoped_ptr.h" | 12 #include "base/memory/scoped_ptr.h" |
| 13 #include "base/strings/string_piece.h" | 13 #include "base/strings/string_piece.h" |
| 14 | 14 |
| 15 class GURL; | 15 class GURL; |
| 16 | 16 |
| 17 namespace extensions { | 17 namespace extensions { |
| 18 | 18 |
| 19 class APIPermissionSet; | 19 class APIPermissionSet; |
| 20 class Extension; | 20 class Extension; |
| 21 class FeatureProvider; | 21 class FeatureProvider; |
| 22 class ManifestPermissionSet; | 22 class ManifestPermissionSet; |
| 23 class PermissionMessage; | 23 class PermissionMessage; |
| 24 class PermissionMessageProvider; | 24 class PermissionMessageProvider; |
| 25 class PermissionsProvider; | |
| 26 class SimpleFeature; | 25 class SimpleFeature; |
| 27 class URLPatternSet; | 26 class URLPatternSet; |
| 28 | 27 |
| 29 // Sets up global state for the extensions system. Should be Set() once in each | 28 // Sets up global state for the extensions system. Should be Set() once in each |
| 30 // process. This should be implemented by the client of the extensions system. | 29 // process. This should be implemented by the client of the extensions system. |
| 31 class ExtensionsClient { | 30 class ExtensionsClient { |
| 32 public: | 31 public: |
| 33 typedef std::vector<std::string> ScriptingWhitelist; | 32 typedef std::vector<std::string> ScriptingWhitelist; |
| 34 | 33 |
| 35 virtual ~ExtensionsClient() {} | 34 virtual ~ExtensionsClient() {} |
| (...skipping 49 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 85 // Return the extensions client. | 84 // Return the extensions client. |
| 86 static ExtensionsClient* Get(); | 85 static ExtensionsClient* Get(); |
| 87 | 86 |
| 88 // Initialize the extensions system with this extensions client. | 87 // Initialize the extensions system with this extensions client. |
| 89 static void Set(ExtensionsClient* client); | 88 static void Set(ExtensionsClient* client); |
| 90 }; | 89 }; |
| 91 | 90 |
| 92 } // namespace extensions | 91 } // namespace extensions |
| 93 | 92 |
| 94 #endif // EXTENSIONS_COMMON_EXTENSIONS_CLIENT_H_ | 93 #endif // EXTENSIONS_COMMON_EXTENSIONS_CLIENT_H_ |
| OLD | NEW |