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

Unified Diff: webkit/browser/fileapi/file_system_operation.h

Issue 16311010: Make FileSystemOperation::Write take closure-friendly parameters (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 7 years, 6 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
Index: webkit/browser/fileapi/file_system_operation.h
diff --git a/webkit/browser/fileapi/file_system_operation.h b/webkit/browser/fileapi/file_system_operation.h
index 8cc015e5ba9b4e00ae5d81fc2659476e04918260..ff6b7b3aa635158e08cef756266daf5033d1b691 100644
--- a/webkit/browser/fileapi/file_system_operation.h
+++ b/webkit/browser/fileapi/file_system_operation.h
@@ -15,11 +15,11 @@
namespace base {
class Time;
-} // namespace base
+}
namespace net {
-class URLRequestContext;
-} // namespace net
+class URLRequest;
+}
namespace webkit_blob {
class ShareableFileReference;
@@ -30,6 +30,7 @@ class GURL;
namespace fileapi {
class FileSystemURL;
+class FileWriterDelegate;
class LocalFileSystemOperation;
// The interface class for FileSystemOperation implementations.
@@ -171,13 +172,12 @@ class FileSystemOperation {
virtual void Remove(const FileSystemURL& path, bool recursive,
const StatusCallback& callback) = 0;
- // Writes contents of |blob_url| to |path| at |offset|.
- // |url_request_context| is used to read contents in |blob_url|.
- virtual void Write(const net::URLRequestContext* url_request_context,
- const FileSystemURL& path,
- const GURL& blob_url,
- int64 offset,
- const WriteCallback& callback) = 0;
+ // Writes the data read from |blob_request| using |writer_delegate|.
+ virtual void Write(
+ const FileSystemURL& url,
+ scoped_ptr<FileWriterDelegate> writer_delegate,
+ scoped_ptr<net::URLRequest> blob_request,
+ const WriteCallback& callback) = 0;
// Truncates a file at |path| to |length|. If |length| is larger than
// the original file size, the file will be extended, and the extended

Powered by Google App Engine
This is Rietveld 408576698