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

Unified Diff: webkit/browser/fileapi/copy_or_move_operation_delegate.cc

Issue 492873002: Collapse fileapi, webkit_blob, webkit_database, quota, and webkit_common namespaces into single sto… (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: fix chromeos build 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: webkit/browser/fileapi/copy_or_move_operation_delegate.cc
diff --git a/webkit/browser/fileapi/copy_or_move_operation_delegate.cc b/webkit/browser/fileapi/copy_or_move_operation_delegate.cc
index 392b0e2f919f71cc679b58cd6829068dc9edc050..97de4f406df6fe1a257951d76af1ec3c2bfc2ccd 100644
--- a/webkit/browser/fileapi/copy_or_move_operation_delegate.cc
+++ b/webkit/browser/fileapi/copy_or_move_operation_delegate.cc
@@ -18,7 +18,7 @@
#include "webkit/common/blob/shareable_file_reference.h"
#include "webkit/common/fileapi/file_system_util.h"
-namespace fileapi {
+namespace storage {
const int64 kFlushIntervalInBytes = 10 << 20; // 10MB.
@@ -131,7 +131,7 @@ class SnapshotCopyOrMoveImpl
base::File::Error error,
const base::File::Info& file_info,
const base::FilePath& platform_path,
- const scoped_refptr<webkit_blob::ShareableFileReference>& file_ref) {
+ const scoped_refptr<storage::ShareableFileReference>& file_ref) {
if (cancel_requested_)
error = base::File::FILE_ERROR_ABORT;
@@ -162,7 +162,7 @@ class SnapshotCopyOrMoveImpl
void RunAfterPreWriteValidation(
const base::FilePath& platform_path,
const base::File::Info& file_info,
- const scoped_refptr<webkit_blob::ShareableFileReference>& file_ref,
+ const scoped_refptr<storage::ShareableFileReference>& file_ref,
const CopyOrMoveOperationDelegate::StatusCallback& callback,
base::File::Error error) {
if (cancel_requested_)
@@ -183,7 +183,7 @@ class SnapshotCopyOrMoveImpl
void RunAfterCopyInForeignFile(
const base::File::Info& file_info,
- const scoped_refptr<webkit_blob::ShareableFileReference>& file_ref,
+ const scoped_refptr<storage::ShareableFileReference>& file_ref,
const CopyOrMoveOperationDelegate::StatusCallback& callback,
base::File::Error error) {
if (cancel_requested_)
@@ -310,7 +310,7 @@ class SnapshotCopyOrMoveImpl
base::File::Error error,
const base::File::Info& file_info,
const base::FilePath& platform_path,
- const scoped_refptr<webkit_blob::ShareableFileReference>& file_ref) {
+ const scoped_refptr<storage::ShareableFileReference>& file_ref) {
if (cancel_requested_)
error = base::File::FILE_ERROR_ABORT;
@@ -331,7 +331,7 @@ class SnapshotCopyOrMoveImpl
// |file_ref| is unused; it is passed here to make sure the reference is
// alive until after post-write validation is complete.
void DidPostWriteValidation(
- const scoped_refptr<webkit_blob::ShareableFileReference>& file_ref,
+ const scoped_refptr<storage::ShareableFileReference>& file_ref,
const CopyOrMoveOperationDelegate::StatusCallback& callback,
base::File::Error error) {
callback.Run(error);
@@ -370,7 +370,7 @@ class StreamCopyOrMoveImpl
const FileSystemURL& src_url,
const FileSystemURL& dest_url,
CopyOrMoveOperationDelegate::CopyOrMoveOption option,
- scoped_ptr<webkit_blob::FileStreamReader> reader,
+ scoped_ptr<storage::FileStreamReader> reader,
scoped_ptr<FileStreamWriter> writer,
const FileSystemOperation::CopyFileProgressCallback&
file_progress_callback)
@@ -383,8 +383,7 @@ class StreamCopyOrMoveImpl
writer_(writer.Pass()),
file_progress_callback_(file_progress_callback),
cancel_requested_(false),
- weak_factory_(this) {
- }
+ weak_factory_(this) {}
virtual void Run(
const CopyOrMoveOperationDelegate::StatusCallback& callback) OVERRIDE {
@@ -443,7 +442,7 @@ class StreamCopyOrMoveImpl
}
const bool need_flush = dest_url_.mount_option().copy_sync_option() ==
- fileapi::COPY_SYNC_OPTION_SYNC;
+ storage::COPY_SYNC_OPTION_SYNC;
DCHECK(!copy_helper_);
copy_helper_.reset(
@@ -520,7 +519,7 @@ class StreamCopyOrMoveImpl
FileSystemURL src_url_;
FileSystemURL dest_url_;
CopyOrMoveOperationDelegate::CopyOrMoveOption option_;
- scoped_ptr<webkit_blob::FileStreamReader> reader_;
+ scoped_ptr<storage::FileStreamReader> reader_;
scoped_ptr<FileStreamWriter> writer_;
FileSystemOperation::CopyFileProgressCallback file_progress_callback_;
scoped_ptr<CopyOrMoveOperationDelegate::StreamCopyHelper> copy_helper_;
@@ -532,12 +531,11 @@ class StreamCopyOrMoveImpl
} // namespace
CopyOrMoveOperationDelegate::StreamCopyHelper::StreamCopyHelper(
- scoped_ptr<webkit_blob::FileStreamReader> reader,
+ scoped_ptr<storage::FileStreamReader> reader,
scoped_ptr<FileStreamWriter> writer,
bool need_flush,
int buffer_size,
- const FileSystemOperation::CopyFileProgressCallback&
- file_progress_callback,
+ const FileSystemOperation::CopyFileProgressCallback& file_progress_callback,
const base::TimeDelta& min_progress_callback_invocation_span)
: reader_(reader.Pass()),
writer_(writer.Pass()),
@@ -757,7 +755,7 @@ void CopyOrMoveOperationDelegate::ProcessFile(
}
if (!validator_factory) {
- scoped_ptr<webkit_blob::FileStreamReader> reader =
+ scoped_ptr<storage::FileStreamReader> reader =
file_system_context()->CreateFileStreamReader(
src_url, 0, base::Time());
scoped_ptr<FileStreamWriter> writer =
@@ -965,4 +963,4 @@ FileSystemURL CopyOrMoveOperationDelegate::CreateDestURL(
relative);
}
-} // namespace fileapi
+} // namespace storage
« no previous file with comments | « webkit/browser/fileapi/copy_or_move_operation_delegate.h ('k') | webkit/browser/fileapi/dragged_file_util.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698