diff options
author | ericu@google.com <ericu@google.com@0039d316-1c4b-4281-b951-d872f2087c98> | 2010-10-07 20:49:59 +0000 |
---|---|---|
committer | ericu@google.com <ericu@google.com@0039d316-1c4b-4281-b951-d872f2087c98> | 2010-10-07 20:49:59 +0000 |
commit | 74b3dc7a7ea8ff8c2a87d54eb3362afea597165a (patch) | |
tree | 20b5713585d131d42537800535fee30cec513f6e /webkit/fileapi/file_system_operation.h | |
parent | 39f1166de3823e6b4e7164838b958e2028d6c1ec (diff) | |
download | chromium_src-74b3dc7a7ea8ff8c2a87d54eb3362afea597165a.zip chromium_src-74b3dc7a7ea8ff8c2a87d54eb3362afea597165a.tar.gz chromium_src-74b3dc7a7ea8ff8c2a87d54eb3362afea597165a.tar.bz2 |
Revert 61833 - Add the actual writing-files part of FileWriter.
BUG=none
TEST=none
Review URL: http://codereview.chromium.org/3476002
TBR=ericu@google.com
Review URL: http://codereview.chromium.org/3630002
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@61842 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'webkit/fileapi/file_system_operation.h')
-rw-r--r-- | webkit/fileapi/file_system_operation.h | 19 |
1 files changed, 2 insertions, 17 deletions
diff --git a/webkit/fileapi/file_system_operation.h b/webkit/fileapi/file_system_operation.h index bfa4141..ba65b7d 100644 --- a/webkit/fileapi/file_system_operation.h +++ b/webkit/fileapi/file_system_operation.h @@ -14,20 +14,16 @@ #include "base/ref_counted.h" #include "base/scoped_callback_factory.h" #include "base/scoped_ptr.h" -#include "googleurl/src/gurl.h" namespace base { class Time; } class GURL; -class URLRequest; -class URLRequestContext; namespace fileapi { class FileSystemCallbackDispatcher; -class FileWriterDelegate; // This class is designed to serve one-time file system operation per instance. // Only one method(CreateFile, CreateDirectory, Copy, Move, DirectoryExists, @@ -62,9 +58,7 @@ class FileSystemOperation { void Remove(const FilePath& path, bool recursive); - void Write( - scoped_refptr<URLRequestContext> url_request_context, - const FilePath& path, const GURL& blob_url, int64 offset); + void Write(const FilePath& path, const GURL& blob_url, int64 offset); void Truncate(const FilePath& path, int64 length); @@ -113,19 +107,10 @@ class FileSystemOperation { void DidTouchFile(base::PlatformFileError rv); - // Helper for Write(). - void OnFileOpenedForWrite( - base::PlatformFileError rv, - base::PassPlatformFile file, - bool created); - scoped_ptr<FileSystemCallbackDispatcher> dispatcher_; + base::ScopedCallbackFactory<FileSystemOperation> callback_factory_; - // These are all used only by Write(). - friend class FileWriterDelegate; - scoped_ptr<FileWriterDelegate> file_writer_delegate_; - scoped_ptr<URLRequest> blob_request_; FileSystemOperation* cancel_operation_; #ifndef NDEBUG |