Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(636)

Side by Side Diff: extensions/browser/api/extensions_api_client.h

Issue 2934143002: Move chrome.fileSystem implementation to //extensions (Closed)
Patch Set: rebase Created 3 years, 5 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
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
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
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_
OLDNEW
« no previous file with comments | « chrome/common/extensions/api/file_system.idl ('k') | extensions/browser/api/extensions_api_client.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698