| 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 20 matching lines...) Expand all Loading... |
| 31 | 31 |
| 32 class AppViewGuestDelegate; | 32 class AppViewGuestDelegate; |
| 33 class ContentRulesRegistry; | 33 class ContentRulesRegistry; |
| 34 class DevicePermissionsPrompt; | 34 class DevicePermissionsPrompt; |
| 35 class ExtensionOptionsGuest; | 35 class ExtensionOptionsGuest; |
| 36 class ExtensionOptionsGuestDelegate; | 36 class ExtensionOptionsGuestDelegate; |
| 37 class ManagementAPIDelegate; | 37 class ManagementAPIDelegate; |
| 38 class MetricsPrivateDelegate; | 38 class MetricsPrivateDelegate; |
| 39 class MimeHandlerViewGuest; | 39 class MimeHandlerViewGuest; |
| 40 class MimeHandlerViewGuestDelegate; | 40 class MimeHandlerViewGuestDelegate; |
| 41 class NetworkingCastPrivateDelegate; |
| 41 class NonNativeFileSystemDelegate; | 42 class NonNativeFileSystemDelegate; |
| 42 class RulesCacheDelegate; | 43 class RulesCacheDelegate; |
| 43 class SettingsObserver; | 44 class SettingsObserver; |
| 44 class ValueStoreCache; | 45 class ValueStoreCache; |
| 45 class ValueStoreFactory; | 46 class ValueStoreFactory; |
| 46 class VirtualKeyboardDelegate; | 47 class VirtualKeyboardDelegate; |
| 47 class WebRequestEventRouterDelegate; | 48 class WebRequestEventRouterDelegate; |
| 48 class WebViewGuest; | 49 class WebViewGuest; |
| 49 class WebViewGuestDelegate; | 50 class WebViewGuestDelegate; |
| 50 class WebViewPermissionHelper; | 51 class WebViewPermissionHelper; |
| (...skipping 74 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 125 virtual std::unique_ptr<VirtualKeyboardDelegate> | 126 virtual std::unique_ptr<VirtualKeyboardDelegate> |
| 126 CreateVirtualKeyboardDelegate() const; | 127 CreateVirtualKeyboardDelegate() const; |
| 127 | 128 |
| 128 // Creates a delegate for handling the management extension api. | 129 // Creates a delegate for handling the management extension api. |
| 129 virtual ManagementAPIDelegate* CreateManagementAPIDelegate() const; | 130 virtual ManagementAPIDelegate* CreateManagementAPIDelegate() const; |
| 130 | 131 |
| 131 // If supported by the embedder, returns a delegate for embedder-dependent | 132 // If supported by the embedder, returns a delegate for embedder-dependent |
| 132 // MetricsPrivateAPI behavior. | 133 // MetricsPrivateAPI behavior. |
| 133 virtual MetricsPrivateDelegate* GetMetricsPrivateDelegate(); | 134 virtual MetricsPrivateDelegate* GetMetricsPrivateDelegate(); |
| 134 | 135 |
| 136 // Creates a delegate for networking.castPrivate's API behavior. |
| 137 virtual NetworkingCastPrivateDelegate* GetNetworkingCastPrivateDelegate(); |
| 138 |
| 135 #if defined(OS_CHROMEOS) | 139 #if defined(OS_CHROMEOS) |
| 136 // If supported by the embedder, returns a delegate for querying non-native | 140 // If supported by the embedder, returns a delegate for querying non-native |
| 137 // file systems. | 141 // file systems. |
| 138 virtual NonNativeFileSystemDelegate* GetNonNativeFileSystemDelegate(); | 142 virtual NonNativeFileSystemDelegate* GetNonNativeFileSystemDelegate(); |
| 139 | 143 |
| 140 // Saves image data on clipboard. | 144 // Saves image data on clipboard. |
| 141 virtual void SaveImageDataToClipboard( | 145 virtual void SaveImageDataToClipboard( |
| 142 const std::vector<char>& image_data, | 146 const std::vector<char>& image_data, |
| 143 api::clipboard::ImageType type, | 147 api::clipboard::ImageType type, |
| 144 const base::Closure& success_callback, | 148 const base::Closure& success_callback, |
| 145 const base::Callback<void(const std::string&)>& error_callback); | 149 const base::Callback<void(const std::string&)>& error_callback); |
| 146 #endif | 150 #endif |
| 147 | 151 |
| 148 // NOTE: If this interface gains too many methods (perhaps more than 20) it | 152 // NOTE: If this interface gains too many methods (perhaps more than 20) it |
| 149 // should be split into one interface per API. | 153 // should be split into one interface per API. |
| 150 }; | 154 }; |
| 151 | 155 |
| 152 } // namespace extensions | 156 } // namespace extensions |
| 153 | 157 |
| 154 #endif // EXTENSIONS_BROWSER_API_EXTENSIONS_API_CLIENT_H_ | 158 #endif // EXTENSIONS_BROWSER_API_EXTENSIONS_API_CLIENT_H_ |
| OLD | NEW |