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

Side by Side Diff: chrome/common/extensions/api/file_system_provider.idl

Issue 389893002: [fsp] Add support for creating files. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Rebased. Created 6 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 | Annotate | Revision Log
OLDNEW
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 // Use the <code>chrome.fileSystemProvider</code> API to create file systems, 5 // Use the <code>chrome.fileSystemProvider</code> API to create file systems,
6 // that can be accessible from the file manager on Chrome OS. 6 // that can be accessible from the file manager on Chrome OS.
7 [platforms=("chromeos"), 7 [platforms=("chromeos"),
8 implemented_in="chrome/browser/chromeos/extensions/file_system_provider/file_sy stem_provider_api.h"] 8 implemented_in="chrome/browser/chromeos/extensions/file_system_provider/file_sy stem_provider_api.h"]
9 namespace fileSystemProvider { 9 namespace fileSystemProvider {
10 // Error codes used by providing extensions in response to requests. For 10 // Error codes used by providing extensions in response to requests. For
(...skipping 108 matching lines...) Expand 10 before | Expand all | Expand 10 after
119 }; 119 };
120 120
121 // Options for the <code>onDeleteEntryRequested()</code> event. 121 // Options for the <code>onDeleteEntryRequested()</code> event.
122 dictionary DeleteEntryRequestedOptions { 122 dictionary DeleteEntryRequestedOptions {
123 DOMString fileSystemId; 123 DOMString fileSystemId;
124 long requestId; 124 long requestId;
125 DOMString entryPath; 125 DOMString entryPath;
126 boolean recursive; 126 boolean recursive;
127 }; 127 };
128 128
129 // Options for the <code>onCreateFileRequested()</code> event.
130 dictionary CreateFileRequestedOptions {
131 DOMString fileSystemId;
132 long requestId;
133 DOMString filePath;
134 };
135
129 // Callback to receive the result of mount() function. 136 // Callback to receive the result of mount() function.
130 callback MountCallback = void([nodoc, instanceOf=DOMError] object error); 137 callback MountCallback = void([nodoc, instanceOf=DOMError] object error);
131 138
132 // Callback to receive the result of unmount() function. 139 // Callback to receive the result of unmount() function.
133 callback UnmountCallback = void([nodoc, instanceOf=DOMError] object error); 140 callback UnmountCallback = void([nodoc, instanceOf=DOMError] object error);
134 141
135 // Callback to handle an error raised from the browser. 142 // Callback to handle an error raised from the browser.
136 [nocompile] callback ErrorCallback = void([instanceOf=DOMError] object error); 143 [nocompile] callback ErrorCallback = void([instanceOf=DOMError] object error);
137 144
138 // Callback to be called by the providing extension in case of a success. 145 // Callback to be called by the providing extension in case of a success.
(...skipping 105 matching lines...) Expand 10 before | Expand all | Expand 10 after
244 ProviderSuccessCallback successCallback, 251 ProviderSuccessCallback successCallback,
245 ProviderErrorCallback errorCallback); 252 ProviderErrorCallback errorCallback);
246 253
247 // Raised when deleting an entry is requested. If <code>recursive</code> is 254 // Raised when deleting an entry is requested. If <code>recursive</code> is
248 // true, and the entry is a directory, then all of the entries inside 255 // true, and the entry is a directory, then all of the entries inside
249 // must be recursively deleted as well. 256 // must be recursively deleted as well.
250 [maxListeners=1, nodoc] static void onDeleteEntryRequested( 257 [maxListeners=1, nodoc] static void onDeleteEntryRequested(
251 DeleteEntryRequestedOptions options, 258 DeleteEntryRequestedOptions options,
252 ProviderSuccessCallback successCallback, 259 ProviderSuccessCallback successCallback,
253 ProviderErrorCallback errorCallback); 260 ProviderErrorCallback errorCallback);
261
262 // Raised when creating a file is requested. If the file already exists,
263 // then <code>errorCallback</code> must be called with the <code>EXISTS
264 // </code> error code.
265 [maxListeners=1, nodoc] static void onCreateFileRequested(
266 CreateFileRequestedOptions options,
267 ProviderSuccessCallback successCallback,
268 ProviderErrorCallback errorCallback);
254 }; 269 };
255 }; 270 };
256 271
OLDNEW
« no previous file with comments | « chrome/chrome_tests_unit.gypi ('k') | chrome/renderer/resources/extensions/file_system_provider_custom_bindings.js » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698