| 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 <map> |
| 11 #include <memory> | 11 #include <memory> |
| 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; |
| 22 } | 22 } |
| 23 | 23 |
| 24 namespace storage { | 24 namespace storage { |
| 25 class FileStreamReader; | 25 class FileStreamReader; |
| 26 class ShareableFileReference; | |
| 27 enum class FlushPolicy; | 26 enum class FlushPolicy; |
| 28 } | 27 } |
| 29 | 28 |
| 30 namespace storage { | 29 namespace storage { |
| 31 | 30 |
| 32 class CopyOrMoveFileValidator; | |
| 33 class FileStreamWriter; | 31 class FileStreamWriter; |
| 34 | 32 |
| 35 // A delegate class for recursive copy or move operations. | 33 // A delegate class for recursive copy or move operations. |
| 36 class CopyOrMoveOperationDelegate | 34 class CopyOrMoveOperationDelegate |
| 37 : public RecursiveOperationDelegate { | 35 : public RecursiveOperationDelegate { |
| 38 public: | 36 public: |
| 39 class CopyOrMoveImpl; | 37 class CopyOrMoveImpl; |
| 40 typedef FileSystemOperation::CopyProgressCallback CopyProgressCallback; | 38 typedef FileSystemOperation::CopyProgressCallback CopyProgressCallback; |
| 41 typedef FileSystemOperation::CopyOrMoveOption CopyOrMoveOption; | 39 typedef FileSystemOperation::CopyOrMoveOption CopyOrMoveOption; |
| 42 typedef FileSystemOperation::ErrorBehavior ErrorBehavior; | 40 typedef FileSystemOperation::ErrorBehavior ErrorBehavior; |
| (...skipping 115 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 158 | 156 |
| 159 std::map<CopyOrMoveImpl*, std::unique_ptr<CopyOrMoveImpl>> running_copy_set_; | 157 std::map<CopyOrMoveImpl*, std::unique_ptr<CopyOrMoveImpl>> running_copy_set_; |
| 160 base::WeakPtrFactory<CopyOrMoveOperationDelegate> weak_factory_; | 158 base::WeakPtrFactory<CopyOrMoveOperationDelegate> weak_factory_; |
| 161 | 159 |
| 162 DISALLOW_COPY_AND_ASSIGN(CopyOrMoveOperationDelegate); | 160 DISALLOW_COPY_AND_ASSIGN(CopyOrMoveOperationDelegate); |
| 163 }; | 161 }; |
| 164 | 162 |
| 165 } // namespace storage | 163 } // namespace storage |
| 166 | 164 |
| 167 #endif // STORAGE_BROWSER_FILEAPI_COPY_OR_MOVE_OPERATION_DELEGATE_H_ | 165 #endif // STORAGE_BROWSER_FILEAPI_COPY_OR_MOVE_OPERATION_DELEGATE_H_ |
| OLD | NEW |