OLD | NEW |
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2012 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 CHROME_BROWSER_CHROMEOS_DRIVE_FILE_SYSTEM_COPY_OPERATION_H_ | 5 #ifndef CHROME_BROWSER_CHROMEOS_DRIVE_FILE_SYSTEM_COPY_OPERATION_H_ |
6 #define CHROME_BROWSER_CHROMEOS_DRIVE_FILE_SYSTEM_COPY_OPERATION_H_ | 6 #define CHROME_BROWSER_CHROMEOS_DRIVE_FILE_SYSTEM_COPY_OPERATION_H_ |
7 | 7 |
8 #include "base/basictypes.h" | 8 #include "base/basictypes.h" |
9 #include "base/memory/ref_counted.h" | 9 #include "base/memory/ref_counted.h" |
10 #include "base/memory/scoped_ptr.h" | 10 #include "base/memory/scoped_ptr.h" |
(...skipping 76 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
87 void ScheduleTransferRegularFileAfterCreate( | 87 void ScheduleTransferRegularFileAfterCreate( |
88 const base::FilePath& local_file_path, | 88 const base::FilePath& local_file_path, |
89 const base::FilePath& remote_dest_file_path, | 89 const base::FilePath& remote_dest_file_path, |
90 const FileOperationCallback& callback, | 90 const FileOperationCallback& callback, |
91 FileError error); | 91 FileError error); |
92 void ScheduleTransferRegularFileAfterGetResourceEntry( | 92 void ScheduleTransferRegularFileAfterGetResourceEntry( |
93 const base::FilePath& local_file_path, | 93 const base::FilePath& local_file_path, |
94 const FileOperationCallback& callback, | 94 const FileOperationCallback& callback, |
95 FileError error, | 95 FileError error, |
96 scoped_ptr<ResourceEntry> entry); | 96 scoped_ptr<ResourceEntry> entry); |
| 97 void ScheduleTransferRegularFileAfterStore( |
| 98 scoped_ptr<ResourceEntry> entry, |
| 99 const FileOperationCallback& callback, |
| 100 FileError error); |
97 | 101 |
98 // Invoked upon completion of GetFileByPath initiated by | 102 // Invoked upon completion of GetFileByPath initiated by |
99 // TransferFileFromRemoteToLocal. If GetFileByPath reports no error, calls | 103 // TransferFileFromRemoteToLocal. If GetFileByPath reports no error, calls |
100 // CopyLocalFileOnBlockingPool to copy |local_file_path| to | 104 // CopyLocalFileOnBlockingPool to copy |local_file_path| to |
101 // |local_dest_file_path|. | 105 // |local_dest_file_path|. |
102 void OnGetFileCompleteForTransferFile( | 106 void OnGetFileCompleteForTransferFile( |
103 const base::FilePath& local_dest_file_path, | 107 const base::FilePath& local_dest_file_path, |
104 const FileOperationCallback& callback, | 108 const FileOperationCallback& callback, |
105 FileError error, | 109 FileError error, |
106 const base::FilePath& local_file_path, | 110 const base::FilePath& local_file_path, |
(...skipping 79 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
186 // Note: This should remain the last member so it'll be destroyed and | 190 // Note: This should remain the last member so it'll be destroyed and |
187 // invalidate the weak pointers before any other members are destroyed. | 191 // invalidate the weak pointers before any other members are destroyed. |
188 base::WeakPtrFactory<CopyOperation> weak_ptr_factory_; | 192 base::WeakPtrFactory<CopyOperation> weak_ptr_factory_; |
189 DISALLOW_COPY_AND_ASSIGN(CopyOperation); | 193 DISALLOW_COPY_AND_ASSIGN(CopyOperation); |
190 }; | 194 }; |
191 | 195 |
192 } // namespace file_system | 196 } // namespace file_system |
193 } // namespace drive | 197 } // namespace drive |
194 | 198 |
195 #endif // CHROME_BROWSER_CHROMEOS_DRIVE_FILE_SYSTEM_COPY_OPERATION_H_ | 199 #endif // CHROME_BROWSER_CHROMEOS_DRIVE_FILE_SYSTEM_COPY_OPERATION_H_ |
OLD | NEW |