| 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 #ifndef STORAGE_BROWSER_FILEAPI_COPY_OR_MOVE_OPERATION_DELEGATE_H_ | 5 #ifndef STORAGE_BROWSER_FILEAPI_COPY_OR_MOVE_OPERATION_DELEGATE_H_ |
| 6 #define STORAGE_BROWSER_FILEAPI_COPY_OR_MOVE_OPERATION_DELEGATE_H_ | 6 #define STORAGE_BROWSER_FILEAPI_COPY_OR_MOVE_OPERATION_DELEGATE_H_ |
| 7 | 7 |
| 8 #include <stdint.h> | 8 #include <stdint.h> |
| 9 | 9 |
| 10 #include <map> |
| 10 #include <memory> | 11 #include <memory> |
| 11 #include <set> | |
| 12 #include <stack> | 12 #include <stack> |
| 13 | 13 |
| 14 #include "base/macros.h" | 14 #include "base/macros.h" |
| 15 #include "base/memory/ref_counted.h" | 15 #include "base/memory/ref_counted.h" |
| 16 #include "base/time/time.h" | 16 #include "base/time/time.h" |
| 17 #include "storage/browser/fileapi/recursive_operation_delegate.h" | 17 #include "storage/browser/fileapi/recursive_operation_delegate.h" |
| 18 | 18 |
| 19 namespace net { | 19 namespace net { |
| 20 class DrainableIOBuffer; | 20 class DrainableIOBuffer; |
| 21 class IOBufferWithSize; | 21 class IOBufferWithSize; |
| (...skipping 127 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 149 | 149 |
| 150 FileSystemURL src_root_; | 150 FileSystemURL src_root_; |
| 151 FileSystemURL dest_root_; | 151 FileSystemURL dest_root_; |
| 152 bool same_file_system_; | 152 bool same_file_system_; |
| 153 OperationType operation_type_; | 153 OperationType operation_type_; |
| 154 CopyOrMoveOption option_; | 154 CopyOrMoveOption option_; |
| 155 ErrorBehavior error_behavior_; | 155 ErrorBehavior error_behavior_; |
| 156 CopyProgressCallback progress_callback_; | 156 CopyProgressCallback progress_callback_; |
| 157 StatusCallback callback_; | 157 StatusCallback callback_; |
| 158 | 158 |
| 159 std::set<CopyOrMoveImpl*> running_copy_set_; | 159 std::map<CopyOrMoveImpl*, std::unique_ptr<CopyOrMoveImpl>> running_copy_set_; |
| 160 base::WeakPtrFactory<CopyOrMoveOperationDelegate> weak_factory_; | 160 base::WeakPtrFactory<CopyOrMoveOperationDelegate> weak_factory_; |
| 161 | 161 |
| 162 DISALLOW_COPY_AND_ASSIGN(CopyOrMoveOperationDelegate); | 162 DISALLOW_COPY_AND_ASSIGN(CopyOrMoveOperationDelegate); |
| 163 }; | 163 }; |
| 164 | 164 |
| 165 } // namespace storage | 165 } // namespace storage |
| 166 | 166 |
| 167 #endif // STORAGE_BROWSER_FILEAPI_COPY_OR_MOVE_OPERATION_DELEGATE_H_ | 167 #endif // STORAGE_BROWSER_FILEAPI_COPY_OR_MOVE_OPERATION_DELEGATE_H_ |
| OLD | NEW |