Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(118)

Unified Diff: webkit/fileapi/file_system_operation.h

Issue 3440021: This is the IPC and bits of the browser backend for FileWriter. The rest of... (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: '' Created 10 years, 3 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « chrome/common/render_messages_internal.h ('k') | webkit/fileapi/file_system_operation.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: webkit/fileapi/file_system_operation.h
===================================================================
--- webkit/fileapi/file_system_operation.h (revision 60387)
+++ webkit/fileapi/file_system_operation.h (working copy)
@@ -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 @@
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 @@
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_;
« no previous file with comments | « chrome/common/render_messages_internal.h ('k') | webkit/fileapi/file_system_operation.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698