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 WEBKIT_BROWSER_FILEAPI_COPY_OR_MOVE_OPERATION_DELEGATE_H_ | 5 #ifndef WEBKIT_BROWSER_FILEAPI_COPY_OR_MOVE_OPERATION_DELEGATE_H_ |
6 #define WEBKIT_BROWSER_FILEAPI_COPY_OR_MOVE_OPERATION_DELEGATE_H_ | 6 #define WEBKIT_BROWSER_FILEAPI_COPY_OR_MOVE_OPERATION_DELEGATE_H_ |
7 | 7 |
8 #include <stack> | 8 #include <stack> |
9 | 9 |
10 #include "base/memory/ref_counted.h" | 10 #include "base/memory/ref_counted.h" |
(...skipping 58 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
69 const base::PlatformFileInfo& file_info, | 69 const base::PlatformFileInfo& file_info, |
70 const base::FilePath& platform_path, | 70 const base::FilePath& platform_path, |
71 const scoped_refptr<webkit_blob::ShareableFileReference>& file_ref); | 71 const scoped_refptr<webkit_blob::ShareableFileReference>& file_ref); |
72 void DidValidateFile( | 72 void DidValidateFile( |
73 const FileSystemURL& dest, | 73 const FileSystemURL& dest, |
74 const StatusCallback& callback, | 74 const StatusCallback& callback, |
75 const base::PlatformFileInfo& file_info, | 75 const base::PlatformFileInfo& file_info, |
76 const base::FilePath& platform_path, | 76 const base::FilePath& platform_path, |
77 base::PlatformFileError error); | 77 base::PlatformFileError error); |
78 void DidFinishCopy( | 78 void DidFinishCopy( |
79 const FileSystemURL& src, | 79 const URLPair& url_pair, |
| 80 const StatusCallback& callback, |
| 81 base::PlatformFileError error); |
| 82 void DoPostWriteValidation( |
| 83 const URLPair& url_pair, |
| 84 const StatusCallback& callback, |
| 85 base::PlatformFileError error, |
| 86 const base::PlatformFileInfo& file_info, |
| 87 const base::FilePath& platform_path, |
| 88 const scoped_refptr<webkit_blob::ShareableFileReference>& file_ref); |
| 89 void DidPostWriteValidation( |
| 90 const URLPair& url_pair, |
80 const StatusCallback& callback, | 91 const StatusCallback& callback, |
81 base::PlatformFileError error); | 92 base::PlatformFileError error); |
82 void DidRemoveSourceForMove( | 93 void DidRemoveSourceForMove( |
83 const StatusCallback& callback, | 94 const StatusCallback& callback, |
84 base::PlatformFileError error); | 95 base::PlatformFileError error); |
| 96 void DidRemoveDestForError( |
| 97 base::PlatformFileError error); |
85 | 98 |
86 FileSystemURL CreateDestURL(const FileSystemURL& src_url) const; | 99 FileSystemURL CreateDestURL(const FileSystemURL& src_url) const; |
87 | 100 |
88 FileSystemURL src_root_; | 101 FileSystemURL src_root_; |
89 FileSystemURL dest_root_; | 102 FileSystemURL dest_root_; |
90 bool same_file_system_; | 103 bool same_file_system_; |
91 OperationType operation_type_; | 104 OperationType operation_type_; |
92 StatusCallback callback_; | 105 StatusCallback callback_; |
93 | 106 |
94 scoped_refptr<webkit_blob::ShareableFileReference> current_file_ref_; | 107 scoped_refptr<webkit_blob::ShareableFileReference> current_file_ref_; |
95 | 108 |
96 scoped_ptr<CopyOrMoveFileValidator> validator_; | 109 scoped_ptr<CopyOrMoveFileValidator> validator_; |
97 | 110 |
98 DISALLOW_COPY_AND_ASSIGN(CopyOrMoveOperationDelegate); | 111 DISALLOW_COPY_AND_ASSIGN(CopyOrMoveOperationDelegate); |
99 }; | 112 }; |
100 | 113 |
101 } // namespace fileapi | 114 } // namespace fileapi |
102 | 115 |
103 #endif // WEBKIT_BROWSER_FILEAPI_COPY_OR_MOVE_OPERATION_DELEGATE_H_ | 116 #endif // WEBKIT_BROWSER_FILEAPI_COPY_OR_MOVE_OPERATION_DELEGATE_H_ |
OLD | NEW |