| 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
|
|
|