diff options
author | ericu@google.com <ericu@google.com@0039d316-1c4b-4281-b951-d872f2087c98> | 2010-09-24 01:06:00 +0000 |
---|---|---|
committer | ericu@google.com <ericu@google.com@0039d316-1c4b-4281-b951-d872f2087c98> | 2010-09-24 01:06:00 +0000 |
commit | ac716267efc98d9fcdf9c3c22b10e6a9d8a9dbc8 (patch) | |
tree | 83a2b5f323ab94ae9ce25eea6f3b50c87f3b1353 /webkit/fileapi/file_system_operation.h | |
parent | 09618270d0997bd325786d19182202ccb80fa945 (diff) | |
download | chromium_src-ac716267efc98d9fcdf9c3c22b10e6a9d8a9dbc8.zip chromium_src-ac716267efc98d9fcdf9c3c22b10e6a9d8a9dbc8.tar.gz chromium_src-ac716267efc98d9fcdf9c3c22b10e6a9d8a9dbc8.tar.bz2 |
This is the IPC and bits of the browser backend for FileWriter. The rest of
it's too tied together to include a small amount; this is the most-significant
chunk that I could put up without making too big a changelist.
The backend isn't complete, but you can see where it's going from here.
BUG=none
TEST=none
Review URL: http://codereview.chromium.org/3440021
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@60396 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'webkit/fileapi/file_system_operation.h')
-rw-r--r-- | webkit/fileapi/file_system_operation.h | 16 |
1 files changed, 16 insertions, 0 deletions
diff --git a/webkit/fileapi/file_system_operation.h b/webkit/fileapi/file_system_operation.h index 5df4d4d..e1058a3 100644 --- a/webkit/fileapi/file_system_operation.h +++ b/webkit/fileapi/file_system_operation.h @@ -15,6 +15,8 @@ #include "base/scoped_callback_factory.h" #include "base/scoped_ptr.h" +class GURL; + namespace fileapi { class FileSystemCallbackDispatcher; @@ -55,6 +57,15 @@ class FileSystemOperation { void Remove(const FilePath& path); + void Write( + const FilePath& path, const GURL& blob_url, int64 offset); + + void Truncate(const FilePath& path, int64 length); + + // Used to attempt to cancel the current operation. This currently does + // nothing for any operation other than Write(). + void Cancel(); + protected: // Proxy for calling file_util_proxy methods. scoped_refptr<base::MessageLoopProxy> proxy_; @@ -84,6 +95,11 @@ class FileSystemOperation { base::PlatformFileError rv, const std::vector<base::file_util_proxy::Entry>& entries); + void DidWrite( + base::PlatformFileError rv, + int64 bytes, + bool complete); + scoped_ptr<FileSystemCallbackDispatcher> dispatcher_; base::ScopedCallbackFactory<FileSystemOperation> callback_factory_; |