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

Unified Diff: storage/browser/fileapi/local_file_stream_writer.h

Issue 442383002: Move storage-related files from webkit/ to new top-level directory storage/ (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: . Created 6 years, 4 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: storage/browser/fileapi/local_file_stream_writer.h
diff --git a/webkit/browser/fileapi/local_file_stream_writer.h b/storage/browser/fileapi/local_file_stream_writer.h
similarity index 89%
rename from webkit/browser/fileapi/local_file_stream_writer.h
rename to storage/browser/fileapi/local_file_stream_writer.h
index 47bea5d410b1cf44e12466a46e256155107216e5..ac723b9d20a9e31c67261ba8280d6d0215e6207a 100644
--- a/webkit/browser/fileapi/local_file_stream_writer.h
+++ b/storage/browser/fileapi/local_file_stream_writer.h
@@ -14,8 +14,8 @@
#include "base/memory/scoped_ptr.h"
#include "base/memory/weak_ptr.h"
#include "base/task_runner.h"
-#include "webkit/browser/fileapi/file_stream_writer.h"
-#include "webkit/browser/webkit_storage_browser_export.h"
+#include "storage/browser/fileapi/file_stream_writer.h"
+#include "storage/common/storage_export.h"
namespace content {
class LocalFileStreamWriterTest;
@@ -25,16 +25,17 @@ namespace net {
class FileStream;
}
-namespace fileapi {
+namespace storage {
// This class is a thin wrapper around net::FileStream for writing local files.
-class WEBKIT_STORAGE_BROWSER_EXPORT LocalFileStreamWriter
+class STORAGE_EXPORT LocalFileStreamWriter
: public NON_EXPORTED_BASE(FileStreamWriter) {
public:
virtual ~LocalFileStreamWriter();
// FileStreamWriter overrides.
- virtual int Write(net::IOBuffer* buf, int buf_len,
+ virtual int Write(net::IOBuffer* buf,
+ int buf_len,
const net::CompletionCallback& callback) OVERRIDE;
virtual int Cancel(const net::CompletionCallback& callback) OVERRIDE;
virtual int Flush(const net::CompletionCallback& callback) OVERRIDE;
@@ -64,11 +65,13 @@ class WEBKIT_STORAGE_BROWSER_EXPORT LocalFileStreamWriter
int64 result);
// Passed as the |main_operation| of InitiateOpen() function.
- void ReadyToWrite(net::IOBuffer* buf, int buf_len,
+ void ReadyToWrite(net::IOBuffer* buf,
+ int buf_len,
const net::CompletionCallback& callback);
// Writes asynchronously to the file.
- int InitiateWrite(net::IOBuffer* buf, int buf_len,
+ int InitiateWrite(net::IOBuffer* buf,
+ int buf_len,
const net::CompletionCallback& callback);
void DidWrite(const net::CompletionCallback& callback, int result);
@@ -95,6 +98,6 @@ class WEBKIT_STORAGE_BROWSER_EXPORT LocalFileStreamWriter
DISALLOW_COPY_AND_ASSIGN(LocalFileStreamWriter);
};
-} // namespace fileapi
+} // namespace storage
#endif // WEBKIT_BROWSER_FILEAPI_LOCAL_FILE_STREAM_WRITER_H_
« no previous file with comments | « storage/browser/fileapi/isolated_file_system_backend.cc ('k') | storage/browser/fileapi/local_file_stream_writer.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698