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 100 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
111 | 111 |
112 // Options for the <code>onCreateDirectoryRequested()</code> event. | 112 // Options for the <code>onCreateDirectoryRequested()</code> event. |
113 dictionary CreateDirectoryRequestedOptions { | 113 dictionary CreateDirectoryRequestedOptions { |
114 DOMString fileSystemId; | 114 DOMString fileSystemId; |
115 long requestId; | 115 long requestId; |
116 DOMString directoryPath; | 116 DOMString directoryPath; |
117 boolean exclusive; | 117 boolean exclusive; |
118 boolean recursive; | 118 boolean recursive; |
119 }; | 119 }; |
120 | 120 |
121 // Options for the <code>onDeleteEntryRequested()</code> event. | |
122 dictionary DeleteEntryRequestedOptions { | |
123 DOMString fileSystemId; | |
124 long requestId; | |
125 DOMString entryPath; | |
126 boolean recursive; | |
127 }; | |
128 | |
121 // Callback to receive the result of mount() function. | 129 // Callback to receive the result of mount() function. |
122 callback MountCallback = void([nodoc, instanceOf=DOMError] object error); | 130 callback MountCallback = void([nodoc, instanceOf=DOMError] object error); |
123 | 131 |
124 // Callback to receive the result of unmount() function. | 132 // Callback to receive the result of unmount() function. |
125 callback UnmountCallback = void([nodoc, instanceOf=DOMError] object error); | 133 callback UnmountCallback = void([nodoc, instanceOf=DOMError] object error); |
126 | 134 |
127 // Callback to handle an error raised from the browser. | 135 // Callback to handle an error raised from the browser. |
128 [nocompile] callback ErrorCallback = void([instanceOf=DOMError] object error); | 136 [nocompile] callback ErrorCallback = void([instanceOf=DOMError] object error); |
129 | 137 |
130 // Callback to be called by the providing extension in case of a success. | 138 // Callback to be called by the providing extension in case of a success. |
(...skipping 91 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
222 // Raised when contents of a file opened previously with <code>openRequestId | 230 // Raised when contents of a file opened previously with <code>openRequestId |
223 // </code>. The results should be returned in chunks by calling <code> | 231 // </code>. The results should be returned in chunks by calling <code> |
224 // successCallback</code> several times. In case of an error, <code> | 232 // successCallback</code> several times. In case of an error, <code> |
225 // errorCallback</code> must be called. | 233 // errorCallback</code> must be called. |
226 [maxListeners=1] static void onReadFileRequested( | 234 [maxListeners=1] static void onReadFileRequested( |
227 ReadFileRequestedOptions options, | 235 ReadFileRequestedOptions options, |
228 FileDataCallback successCallback, | 236 FileDataCallback successCallback, |
229 ProviderErrorCallback errorCallback); | 237 ProviderErrorCallback errorCallback); |
230 | 238 |
231 // Raised when creating a directory is requested. If <code>exclusive</code> | 239 // Raised when creating a directory is requested. If <code>exclusive</code> |
232 // is set to true, then the operation should fail if the target directory | 240 // is set to true, then the operation must fail if the target directory |
233 // already exists. If <code>recursive</code> is true, then all of the | 241 // already exists. If <code>recursive</code> is true, then all of the |
234 // missing directories on the directory path should be created. | 242 // missing directories on the directory path must be created. |
235 [maxListeners=1, nodoc] static void onCreateDirectoryRequested( | 243 [maxListeners=1, nodoc] static void onCreateDirectoryRequested( |
236 CreateDirectoryRequestedOptions options, | 244 CreateDirectoryRequestedOptions options, |
237 ProviderSuccessCallback successCallback, | 245 ProviderSuccessCallback successCallback, |
238 ProviderErrorCallback errorCallback); | 246 ProviderErrorCallback errorCallback); |
247 | |
248 // Raised when deleting an entry is requested. If <code>recursive</code> is | |
249 // true, and the entry is a directory, then all of the entries inside | |
250 // must be recursively deleted as well. | |
251 [maxListeners=1, nodoc] static void onDeleteEntryRequested( | |
not at google - send to devlin
2014/07/08 16:30:18
I have exactly the same comments on this CL as the
| |
252 DeleteEntryRequestedOptions options, | |
253 ProviderSuccessCallback successCallback, | |
254 ProviderErrorCallback errorCallback); | |
239 }; | 255 }; |
240 }; | 256 }; |
241 | 257 |
OLD | NEW |