| OLD | NEW |
| 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 <stdint.h> | 7 #include <stdint.h> |
| 8 | 8 |
| 9 #include <memory> | 9 #include <memory> |
| 10 #include <tuple> | 10 #include <tuple> |
| (...skipping 736 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 747 operation_type_(operation_type), | 747 operation_type_(operation_type), |
| 748 option_(option), | 748 option_(option), |
| 749 error_behavior_(error_behavior), | 749 error_behavior_(error_behavior), |
| 750 progress_callback_(progress_callback), | 750 progress_callback_(progress_callback), |
| 751 callback_(callback), | 751 callback_(callback), |
| 752 weak_factory_(this) { | 752 weak_factory_(this) { |
| 753 same_file_system_ = src_root_.IsInSameFileSystem(dest_root_); | 753 same_file_system_ = src_root_.IsInSameFileSystem(dest_root_); |
| 754 } | 754 } |
| 755 | 755 |
| 756 CopyOrMoveOperationDelegate::~CopyOrMoveOperationDelegate() { | 756 CopyOrMoveOperationDelegate::~CopyOrMoveOperationDelegate() { |
| 757 STLDeleteElements(&running_copy_set_); | 757 base::STLDeleteElements(&running_copy_set_); |
| 758 } | 758 } |
| 759 | 759 |
| 760 void CopyOrMoveOperationDelegate::Run() { | 760 void CopyOrMoveOperationDelegate::Run() { |
| 761 // Not supported; this should never be called. | 761 // Not supported; this should never be called. |
| 762 NOTREACHED(); | 762 NOTREACHED(); |
| 763 } | 763 } |
| 764 | 764 |
| 765 void CopyOrMoveOperationDelegate::RunRecursively() { | 765 void CopyOrMoveOperationDelegate::RunRecursively() { |
| 766 // Perform light-weight checks first. | 766 // Perform light-weight checks first. |
| 767 | 767 |
| (...skipping 261 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1029 base::FilePath relative = dest_root_.virtual_path(); | 1029 base::FilePath relative = dest_root_.virtual_path(); |
| 1030 src_root_.virtual_path().AppendRelativePath(src_url.virtual_path(), | 1030 src_root_.virtual_path().AppendRelativePath(src_url.virtual_path(), |
| 1031 &relative); | 1031 &relative); |
| 1032 return file_system_context()->CreateCrackedFileSystemURL( | 1032 return file_system_context()->CreateCrackedFileSystemURL( |
| 1033 dest_root_.origin(), | 1033 dest_root_.origin(), |
| 1034 dest_root_.mount_type(), | 1034 dest_root_.mount_type(), |
| 1035 relative); | 1035 relative); |
| 1036 } | 1036 } |
| 1037 | 1037 |
| 1038 } // namespace storage | 1038 } // namespace storage |
| OLD | NEW |