| OLD | NEW |
| 1 // Copyright 2014 The Chromium Authors. All rights reserved. | 1 // Copyright 2014 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_BROWSER_API_EXTENSIONS_API_CLIENT_H_ | 5 #ifndef EXTENSIONS_BROWSER_API_EXTENSIONS_API_CLIENT_H_ |
| 6 #define EXTENSIONS_BROWSER_API_EXTENSIONS_API_CLIENT_H_ | 6 #define EXTENSIONS_BROWSER_API_EXTENSIONS_API_CLIENT_H_ |
| 7 | 7 |
| 8 #include <map> | 8 #include <map> |
| 9 #include <memory> | 9 #include <memory> |
| 10 | 10 |
| (...skipping 17 matching lines...) Expand all Loading... |
| 28 class GuestViewManagerDelegate; | 28 class GuestViewManagerDelegate; |
| 29 } // namespace guest_view | 29 } // namespace guest_view |
| 30 | 30 |
| 31 namespace extensions { | 31 namespace extensions { |
| 32 | 32 |
| 33 class AppViewGuestDelegate; | 33 class AppViewGuestDelegate; |
| 34 class ContentRulesRegistry; | 34 class ContentRulesRegistry; |
| 35 class DevicePermissionsPrompt; | 35 class DevicePermissionsPrompt; |
| 36 class ExtensionOptionsGuest; | 36 class ExtensionOptionsGuest; |
| 37 class ExtensionOptionsGuestDelegate; | 37 class ExtensionOptionsGuestDelegate; |
| 38 class FileSystemDelegate; |
| 38 class ManagementAPIDelegate; | 39 class ManagementAPIDelegate; |
| 39 class MetricsPrivateDelegate; | 40 class MetricsPrivateDelegate; |
| 40 class MimeHandlerViewGuest; | 41 class MimeHandlerViewGuest; |
| 41 class MimeHandlerViewGuestDelegate; | 42 class MimeHandlerViewGuestDelegate; |
| 42 class NetworkingCastPrivateDelegate; | 43 class NetworkingCastPrivateDelegate; |
| 43 class NonNativeFileSystemDelegate; | 44 class NonNativeFileSystemDelegate; |
| 44 class RulesCacheDelegate; | 45 class RulesCacheDelegate; |
| 45 class SettingsObserver; | 46 class SettingsObserver; |
| 46 class ValueStoreCache; | 47 class ValueStoreCache; |
| 47 class ValueStoreFactory; | 48 class ValueStoreFactory; |
| (...skipping 82 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 130 // Creates a delegate for handling the management extension api. | 131 // Creates a delegate for handling the management extension api. |
| 131 virtual ManagementAPIDelegate* CreateManagementAPIDelegate() const; | 132 virtual ManagementAPIDelegate* CreateManagementAPIDelegate() const; |
| 132 | 133 |
| 133 // If supported by the embedder, returns a delegate for embedder-dependent | 134 // If supported by the embedder, returns a delegate for embedder-dependent |
| 134 // MetricsPrivateAPI behavior. | 135 // MetricsPrivateAPI behavior. |
| 135 virtual MetricsPrivateDelegate* GetMetricsPrivateDelegate(); | 136 virtual MetricsPrivateDelegate* GetMetricsPrivateDelegate(); |
| 136 | 137 |
| 137 // Creates a delegate for networking.castPrivate's API behavior. | 138 // Creates a delegate for networking.castPrivate's API behavior. |
| 138 virtual NetworkingCastPrivateDelegate* GetNetworkingCastPrivateDelegate(); | 139 virtual NetworkingCastPrivateDelegate* GetNetworkingCastPrivateDelegate(); |
| 139 | 140 |
| 141 // Returns a delegate for embedder-specific chrome.fileSystem behavior. |
| 142 virtual FileSystemDelegate* GetFileSystemDelegate(); |
| 143 |
| 140 #if defined(OS_CHROMEOS) | 144 #if defined(OS_CHROMEOS) |
| 141 // If supported by the embedder, returns a delegate for querying non-native | 145 // If supported by the embedder, returns a delegate for querying non-native |
| 142 // file systems. | 146 // file systems. |
| 143 virtual NonNativeFileSystemDelegate* GetNonNativeFileSystemDelegate(); | 147 virtual NonNativeFileSystemDelegate* GetNonNativeFileSystemDelegate(); |
| 144 | 148 |
| 145 // Saves image data on clipboard. | 149 // Saves image data on clipboard. |
| 146 virtual void SaveImageDataToClipboard( | 150 virtual void SaveImageDataToClipboard( |
| 147 const std::vector<char>& image_data, | 151 const std::vector<char>& image_data, |
| 148 api::clipboard::ImageType type, | 152 api::clipboard::ImageType type, |
| 149 AdditionalDataItemList additional_items, | 153 AdditionalDataItemList additional_items, |
| 150 const base::Closure& success_callback, | 154 const base::Closure& success_callback, |
| 151 const base::Callback<void(const std::string&)>& error_callback); | 155 const base::Callback<void(const std::string&)>& error_callback); |
| 152 #endif | 156 #endif |
| 153 | 157 |
| 154 // NOTE: If this interface gains too many methods (perhaps more than 20) it | 158 // NOTE: If this interface gains too many methods (perhaps more than 20) it |
| 155 // should be split into one interface per API. | 159 // should be split into one interface per API. |
| 156 }; | 160 }; |
| 157 | 161 |
| 158 } // namespace extensions | 162 } // namespace extensions |
| 159 | 163 |
| 160 #endif // EXTENSIONS_BROWSER_API_EXTENSIONS_API_CLIENT_H_ | 164 #endif // EXTENSIONS_BROWSER_API_EXTENSIONS_API_CLIENT_H_ |
| OLD | NEW |