Chromium Code Reviews| Index: chrome/common/extensions/api/file_system_provider.idl |
| diff --git a/chrome/common/extensions/api/file_system_provider.idl b/chrome/common/extensions/api/file_system_provider.idl |
| index cadaccbf5107c1c05faea466b272739cddc54176..88d5bceea737e958a0db247bdc43d2423a86bd90 100644 |
| --- a/chrome/common/extensions/api/file_system_provider.idl |
| +++ b/chrome/common/extensions/api/file_system_provider.idl |
| @@ -75,12 +75,18 @@ namespace fileSystemProvider { |
| // Success callback for the <code>onGetMetadataRequested</code> event. |
| callback MetadataCallback = void(EntryMetadata metadata); |
| - // Success callback for the <code>onDirectoryRequested</code> event. If more |
| - // entries will be returned, then <code>hasNext</code> must be true, and it |
| - // has to be called again with additional entries. If no more entries are |
| + // Success callback for the <code>onReadDirectoryRequested</code> event. If |
| + // more entries will be returned, then <code>hasNext</code> must be true, and |
| + // it has to be called again with additional entries. If no more entries are |
| // available, then <code>hasNext</code> must be set to false. |
| callback EntriesCallback = void(ResourceEntry[] entries, bool hasNext); |
| + // Success callback for the <code>onReadFileRequested</code> event. If more |
| + // data will be returned, then <code>hasNext</code> must be true, and it |
| + // has to be called again with additional entries. If no more data is |
| + // available, then <code>hasNext</code> must be set to false. |
| + callback FileDataCallback = void(DOMString data, bool hasNext); |
| + |
| interface Functions { |
| // Mounts a file system with the given <code>displayName</code>. |
| // <code>displayName</code> will be shown in the left panel of |
| @@ -152,6 +158,18 @@ namespace fileSystemProvider { |
| long openRequestId, |
| ProviderSuccessCallback successCallback, |
| ProviderErrorCallback errorCallback); |
| + |
| + // Raised when contents of a file opened previously with <code>openRequestId |
|
benwells
2014/05/15 01:31:00
There should be a </code> here I think.
mtomasz
2014/05/16 02:39:58
Done.
|
| + // The results should be returned in chunks by calling the <code> |
| + // successCallback</code> several times. In case of an error, <code> |
| + // errorCallback</code> must be called. |
| + [maxListeners=1] static void onReadFileRequested( |
| + long fileSystemId, |
| + long openRequestId, |
| + double offset, |
| + double length, |
| + FileDataCallback successCallback, |
| + ProviderErrorCallback errorCallback); |
| }; |
| }; |