diff options
author | mtomasz@chromium.org <mtomasz@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2014-05-16 11:17:24 +0000 |
---|---|---|
committer | mtomasz@chromium.org <mtomasz@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2014-05-16 11:17:24 +0000 |
commit | 60dfffbd9285a14b932310697315a85589b1321f (patch) | |
tree | ec38777f725453442c3846e0dc5d7471374c258f /chrome/common/extensions/api/file_system_provider_internal.idl | |
parent | 92549ad6da5ce375d1939140cea70d8dea1d40b3 (diff) | |
download | chromium_src-60dfffbd9285a14b932310697315a85589b1321f.zip chromium_src-60dfffbd9285a14b932310697315a85589b1321f.tar.gz chromium_src-60dfffbd9285a14b932310697315a85589b1321f.tar.bz2 |
[fsp] First part of support for reading files.
This patch adds the read file operation, which is however not bound yet to
fileapi.
In the upcoming patch, support for FileStreamReader will be added. After that,
OpenFile, CloseFile and ReadFile will be bound to async file utils.
TEST=unit_tests: *FileSystemProvider*ReadFile*
BUG=248427
Review URL: https://codereview.chromium.org/287673004
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@270985 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'chrome/common/extensions/api/file_system_provider_internal.idl')
-rw-r--r-- | chrome/common/extensions/api/file_system_provider_internal.idl | 15 |
1 files changed, 15 insertions, 0 deletions
diff --git a/chrome/common/extensions/api/file_system_provider_internal.idl b/chrome/common/extensions/api/file_system_provider_internal.idl index 582bc7d..f63cc0e 100644 --- a/chrome/common/extensions/api/file_system_provider_internal.idl +++ b/chrome/common/extensions/api/file_system_provider_internal.idl @@ -74,6 +74,21 @@ namespace fileSystemProviderInternal { long fileSystemId, long requestId, fileSystemProvider.ProviderError error); + + // Internal. Success callback of the <code>onReadFileRequested</code> + // event. Can be called multiple times per request. + static void readFileRequestedSuccess( + long fileSystemId, + long requestId, + DOMString data, + boolean hasNext); + + // Internal. Error callback of the <code>onReadFileRequested</code> + // event. Must be called when reading a file fails. + static void readFileRequestedError( + long fileSystemId, + long requestId, + fileSystemProvider.ProviderError error); }; }; |