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

Unified Diff: storage/browser/fileapi/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
« no previous file with comments | « storage/browser/fileapi/file_permission_policy.h ('k') | storage/browser/fileapi/file_system_backend.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: storage/browser/fileapi/file_stream_writer.h
diff --git a/webkit/browser/fileapi/file_stream_writer.h b/storage/browser/fileapi/file_stream_writer.h
similarity index 93%
rename from webkit/browser/fileapi/file_stream_writer.h
rename to storage/browser/fileapi/file_stream_writer.h
index 3a30ab26e05e7a48f6a2a16880c7edd0d175b60b..049c7edc42534454cb2599837db0d57eb227f044 100644
--- a/webkit/browser/fileapi/file_stream_writer.h
+++ b/storage/browser/fileapi/file_stream_writer.h
@@ -7,7 +7,7 @@
#include "base/basictypes.h"
#include "net/base/completion_callback.h"
-#include "webkit/browser/webkit_storage_browser_export.h"
+#include "storage/common/storage_export.h"
namespace base {
class FilePath;
@@ -18,7 +18,7 @@ namespace net {
class IOBuffer;
}
-namespace fileapi {
+namespace storage {
// A generic interface for writing to a file-like object.
class FileStreamWriter {
@@ -27,7 +27,7 @@ class FileStreamWriter {
// Creates a writer for the existing file in the path |file_path| starting
// from |initial_offset|. Uses |task_runner| for async file operations.
- WEBKIT_STORAGE_BROWSER_EXPORT static FileStreamWriter* CreateForLocalFile(
+ STORAGE_EXPORT static FileStreamWriter* CreateForLocalFile(
base::TaskRunner* task_runner,
const base::FilePath& file_path,
int64 initial_offset,
@@ -54,7 +54,8 @@ class FileStreamWriter {
// or there is not enough room left on the disk.
//
// It is invalid to call Write while there is an in-flight async operation.
- virtual int Write(net::IOBuffer* buf, int buf_len,
+ virtual int Write(net::IOBuffer* buf,
+ int buf_len,
const net::CompletionCallback& callback) = 0;
// Cancels an in-flight async operation.
@@ -82,6 +83,6 @@ class FileStreamWriter {
virtual int Flush(const net::CompletionCallback& callback) = 0;
};
-} // namespace fileapi
+} // namespace storage
#endif // WEBKIT_BROWSER_FILEAPI_FILE_STREAM_WRITER_H_
« no previous file with comments | « storage/browser/fileapi/file_permission_policy.h ('k') | storage/browser/fileapi/file_system_backend.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698