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

Side by Side Diff: storage/browser/fileapi/copy_or_move_operation_delegate.cc

Issue 810403004: [Storage] Blob Storage Refactoring pt 1 (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Fixed copyright Created 5 years, 11 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 unified diff | Download patch
OLDNEW
1 // Copyright (c) 2013 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2013 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #include "storage/browser/fileapi/copy_or_move_operation_delegate.h" 5 #include "storage/browser/fileapi/copy_or_move_operation_delegate.h"
6 6
7 #include "base/bind.h" 7 #include "base/bind.h"
8 #include "base/files/file_path.h" 8 #include "base/files/file_path.h"
9 #include "net/base/io_buffer.h" 9 #include "net/base/io_buffer.h"
10 #include "net/base/net_errors.h" 10 #include "net/base/net_errors.h"
11 #include "storage/browser/blob/file_stream_reader.h" 11 #include "storage/browser/blob/file_stream_reader.h"
12 #include "storage/browser/blob/shareable_file_reference.h"
12 #include "storage/browser/fileapi/copy_or_move_file_validator.h" 13 #include "storage/browser/fileapi/copy_or_move_file_validator.h"
13 #include "storage/browser/fileapi/file_observers.h" 14 #include "storage/browser/fileapi/file_observers.h"
14 #include "storage/browser/fileapi/file_stream_writer.h" 15 #include "storage/browser/fileapi/file_stream_writer.h"
15 #include "storage/browser/fileapi/file_system_context.h" 16 #include "storage/browser/fileapi/file_system_context.h"
16 #include "storage/browser/fileapi/file_system_operation_runner.h" 17 #include "storage/browser/fileapi/file_system_operation_runner.h"
17 #include "storage/browser/fileapi/file_system_url.h" 18 #include "storage/browser/fileapi/file_system_url.h"
18 #include "storage/browser/fileapi/recursive_operation_delegate.h" 19 #include "storage/browser/fileapi/recursive_operation_delegate.h"
19 #include "storage/common/blob/shareable_file_reference.h"
20 #include "storage/common/fileapi/file_system_util.h" 20 #include "storage/common/fileapi/file_system_util.h"
21 21
22 namespace storage { 22 namespace storage {
23 23
24 const int64 kFlushIntervalInBytes = 10 << 20; // 10MB. 24 const int64 kFlushIntervalInBytes = 10 << 20; // 10MB.
25 25
26 class CopyOrMoveOperationDelegate::CopyOrMoveImpl { 26 class CopyOrMoveOperationDelegate::CopyOrMoveImpl {
27 public: 27 public:
28 virtual ~CopyOrMoveImpl() {} 28 virtual ~CopyOrMoveImpl() {}
29 virtual void Run( 29 virtual void Run(
(...skipping 987 matching lines...) Expand 10 before | Expand all | Expand 10 after
1017 base::FilePath relative = dest_root_.virtual_path(); 1017 base::FilePath relative = dest_root_.virtual_path();
1018 src_root_.virtual_path().AppendRelativePath(src_url.virtual_path(), 1018 src_root_.virtual_path().AppendRelativePath(src_url.virtual_path(),
1019 &relative); 1019 &relative);
1020 return file_system_context()->CreateCrackedFileSystemURL( 1020 return file_system_context()->CreateCrackedFileSystemURL(
1021 dest_root_.origin(), 1021 dest_root_.origin(),
1022 dest_root_.mount_type(), 1022 dest_root_.mount_type(),
1023 relative); 1023 relative);
1024 } 1024 }
1025 1025
1026 } // namespace storage 1026 } // namespace storage
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698