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 // 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 102 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
113 long openRequestId; | 113 long openRequestId; |
114 double offset; | 114 double offset; |
115 double length; | 115 double length; |
116 }; | 116 }; |
117 | 117 |
118 // Options for the <code>onCreateDirectoryRequested()</code> event. | 118 // Options for the <code>onCreateDirectoryRequested()</code> event. |
119 dictionary CreateDirectoryRequestedOptions { | 119 dictionary CreateDirectoryRequestedOptions { |
120 DOMString fileSystemId; | 120 DOMString fileSystemId; |
121 long requestId; | 121 long requestId; |
122 DOMString directoryPath; | 122 DOMString directoryPath; |
123 boolean exclusive; | |
124 boolean recursive; | 123 boolean recursive; |
125 }; | 124 }; |
126 | 125 |
127 // Options for the <code>onDeleteEntryRequested()</code> event. | 126 // Options for the <code>onDeleteEntryRequested()</code> event. |
128 dictionary DeleteEntryRequestedOptions { | 127 dictionary DeleteEntryRequestedOptions { |
129 DOMString fileSystemId; | 128 DOMString fileSystemId; |
130 long requestId; | 129 long requestId; |
131 DOMString entryPath; | 130 DOMString entryPath; |
132 boolean recursive; | 131 boolean recursive; |
133 }; | 132 }; |
(...skipping 154 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
288 | 287 |
289 // Raised when reading contents of a file opened previously with <code> | 288 // Raised when reading contents of a file opened previously with <code> |
290 // openRequestId</code> is requested. The results should be returned in | 289 // openRequestId</code> is requested. The results should be returned in |
291 // chunks by calling <code>successCallback</code> several times. In case of | 290 // chunks by calling <code>successCallback</code> several times. In case of |
292 // an error, <code>errorCallback</code> must be called. | 291 // an error, <code>errorCallback</code> must be called. |
293 [maxListeners=1] static void onReadFileRequested( | 292 [maxListeners=1] static void onReadFileRequested( |
294 ReadFileRequestedOptions options, | 293 ReadFileRequestedOptions options, |
295 FileDataCallback successCallback, | 294 FileDataCallback successCallback, |
296 ProviderErrorCallback errorCallback); | 295 ProviderErrorCallback errorCallback); |
297 | 296 |
298 // Raised when creating a directory is requested. If <code>exclusive</code> | 297 // Raised when creating a directory is requested. The operation must fail |
299 // is set to true, then the operation must fail if the target directory | 298 // with the EXISTS error if the target directory already exists. |
300 // already exists. If <code>recursive</code> is true, then all of the | 299 // If <code>recursive</code> is true, then all of the missing directories |
301 // missing directories on the directory path must be created. | 300 // on the directory path must be created. |
302 [maxListeners=1, nodoc] static void onCreateDirectoryRequested( | 301 [maxListeners=1, nodoc] static void onCreateDirectoryRequested( |
303 CreateDirectoryRequestedOptions options, | 302 CreateDirectoryRequestedOptions options, |
304 ProviderSuccessCallback successCallback, | 303 ProviderSuccessCallback successCallback, |
305 ProviderErrorCallback errorCallback); | 304 ProviderErrorCallback errorCallback); |
306 | 305 |
307 // Raised when deleting an entry is requested. If <code>recursive</code> is | 306 // Raised when deleting an entry is requested. If <code>recursive</code> is |
308 // true, and the entry is a directory, then all of the entries inside | 307 // true, and the entry is a directory, then all of the entries inside |
309 // must be recursively deleted as well. | 308 // must be recursively deleted as well. |
310 [maxListeners=1, nodoc] static void onDeleteEntryRequested( | 309 [maxListeners=1, nodoc] static void onDeleteEntryRequested( |
311 DeleteEntryRequestedOptions options, | 310 DeleteEntryRequestedOptions options, |
(...skipping 43 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
355 // </code> must be called. Note, that callbacks of the aborted operation | 354 // </code> must be called. Note, that callbacks of the aborted operation |
356 // should not be called, as they will be ignored. Despite calling <code> | 355 // should not be called, as they will be ignored. Despite calling <code> |
357 // errorCallback</code>, the request may be forcibly aborted. | 356 // errorCallback</code>, the request may be forcibly aborted. |
358 [maxListeners=1, nodoc] static void onAbortRequested( | 357 [maxListeners=1, nodoc] static void onAbortRequested( |
359 AbortRequestedOptions options, | 358 AbortRequestedOptions options, |
360 ProviderSuccessCallback successCallback, | 359 ProviderSuccessCallback successCallback, |
361 ProviderErrorCallback errorCallback); | 360 ProviderErrorCallback errorCallback); |
362 }; | 361 }; |
363 }; | 362 }; |
364 | 363 |
OLD | NEW |