| 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 57 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 68 base::PlatformFileError error, | 68 base::PlatformFileError error, |
| 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 DidFinishCopyDir( |
| 79 const FileSystemURL& src, | 79 const FileSystemURL& src, |
| 80 const StatusCallback& callback, | 80 const StatusCallback& callback, |
| 81 base::PlatformFileError error); | 81 base::PlatformFileError error); |
| 82 void DidFinishCopy( |
| 83 const URLPair& url_pair, |
| 84 const StatusCallback& callback, |
| 85 base::PlatformFileError error); |
| 86 void DoPostWriteValidation( |
| 87 const URLPair& url_pair, |
| 88 const StatusCallback& callback, |
| 89 base::PlatformFileError error, |
| 90 const base::PlatformFileInfo& file_info, |
| 91 const base::FilePath& platform_path, |
| 92 const scoped_refptr<webkit_blob::ShareableFileReference>& file_ref); |
| 93 void DidPostWriteValidation( |
| 94 const URLPair& url_pair, |
| 95 const StatusCallback& callback, |
| 96 const scoped_refptr<webkit_blob::ShareableFileReference>& file_ref, |
| 97 base::PlatformFileError error); |
| 82 void DidRemoveSourceForMove( | 98 void DidRemoveSourceForMove( |
| 83 const StatusCallback& callback, | 99 const StatusCallback& callback, |
| 84 base::PlatformFileError error); | 100 base::PlatformFileError error); |
| 101 void DidRemoveDestForError( |
| 102 base::PlatformFileError prior_error, |
| 103 const StatusCallback& callback, |
| 104 base::PlatformFileError error); |
| 85 | 105 |
| 86 FileSystemURL CreateDestURL(const FileSystemURL& src_url) const; | 106 FileSystemURL CreateDestURL(const FileSystemURL& src_url) const; |
| 87 | 107 |
| 88 FileSystemURL src_root_; | 108 FileSystemURL src_root_; |
| 89 FileSystemURL dest_root_; | 109 FileSystemURL dest_root_; |
| 90 bool same_file_system_; | 110 bool same_file_system_; |
| 91 OperationType operation_type_; | 111 OperationType operation_type_; |
| 92 StatusCallback callback_; | 112 StatusCallback callback_; |
| 93 | 113 |
| 94 scoped_refptr<webkit_blob::ShareableFileReference> current_file_ref_; | 114 scoped_refptr<webkit_blob::ShareableFileReference> current_file_ref_; |
| 95 | 115 |
| 96 scoped_ptr<CopyOrMoveFileValidator> validator_; | 116 scoped_ptr<CopyOrMoveFileValidator> validator_; |
| 97 | 117 |
| 98 DISALLOW_COPY_AND_ASSIGN(CopyOrMoveOperationDelegate); | 118 DISALLOW_COPY_AND_ASSIGN(CopyOrMoveOperationDelegate); |
| 99 }; | 119 }; |
| 100 | 120 |
| 101 } // namespace fileapi | 121 } // namespace fileapi |
| 102 | 122 |
| 103 #endif // WEBKIT_BROWSER_FILEAPI_COPY_OR_MOVE_OPERATION_DELEGATE_H_ | 123 #endif // WEBKIT_BROWSER_FILEAPI_COPY_OR_MOVE_OPERATION_DELEGATE_H_ |
| OLD | NEW |