| OLD | NEW |
| 1 // Copyright 2014 The Chromium Authors. All rights reserved. | 1 // Copyright 2014 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 COMPONENTS_DRIVE_CHROMEOS_FILE_SYSTEM_OPERATION_DELEGATE_H_ | 5 #ifndef COMPONENTS_DRIVE_CHROMEOS_FILE_SYSTEM_OPERATION_DELEGATE_H_ |
| 6 #define COMPONENTS_DRIVE_CHROMEOS_FILE_SYSTEM_OPERATION_DELEGATE_H_ | 6 #define COMPONENTS_DRIVE_CHROMEOS_FILE_SYSTEM_OPERATION_DELEGATE_H_ |
| 7 | 7 |
| 8 #include "components/drive/file_errors.h" | 8 #include "components/drive/file_errors.h" |
| 9 | 9 |
| 10 namespace base { | |
| 11 class FilePath; | |
| 12 } | |
| 13 | |
| 14 namespace drive { | 10 namespace drive { |
| 15 | 11 |
| 16 struct ClientContext; | 12 struct ClientContext; |
| 17 class FileChange; | 13 class FileChange; |
| 18 | 14 |
| 19 namespace file_system { | 15 namespace file_system { |
| 20 | 16 |
| 21 // Error type of sync client. | 17 // Error type of sync client. |
| 22 // Keep it synced with "DriveSyncErrorType" in file_manager_private.idl. | 18 // Keep it synced with "DriveSyncErrorType" in file_manager_private.idl. |
| 23 enum DriveSyncErrorType { | 19 enum DriveSyncErrorType { |
| (...skipping 28 matching lines...) Expand all Loading... |
| 52 // Waits for the sync task to complete and runs the callback. | 48 // Waits for the sync task to complete and runs the callback. |
| 53 // Returns false if no task is found for the spcecified ID. | 49 // Returns false if no task is found for the spcecified ID. |
| 54 virtual bool WaitForSyncComplete(const std::string& local_id, | 50 virtual bool WaitForSyncComplete(const std::string& local_id, |
| 55 const FileOperationCallback& callback); | 51 const FileOperationCallback& callback); |
| 56 }; | 52 }; |
| 57 | 53 |
| 58 } // namespace file_system | 54 } // namespace file_system |
| 59 } // namespace drive | 55 } // namespace drive |
| 60 | 56 |
| 61 #endif // COMPONENTS_DRIVE_CHROMEOS_FILE_SYSTEM_OPERATION_DELEGATE_H_ | 57 #endif // COMPONENTS_DRIVE_CHROMEOS_FILE_SYSTEM_OPERATION_DELEGATE_H_ |
| OLD | NEW |