| 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_INTERFACE_H_ | 5 #ifndef CHROME_BROWSER_CHROMEOS_DRIVE_FILE_SYSTEM_INTERFACE_H_ |
| 6 #define CHROME_BROWSER_CHROMEOS_DRIVE_FILE_SYSTEM_INTERFACE_H_ | 6 #define CHROME_BROWSER_CHROMEOS_DRIVE_FILE_SYSTEM_INTERFACE_H_ |
| 7 | 7 |
| 8 #include <string> | 8 #include <string> |
| 9 #include <vector> | 9 #include <vector> |
| 10 | 10 |
| (...skipping 151 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 162 | 162 |
| 163 // Checks for updates on the server. | 163 // Checks for updates on the server. |
| 164 virtual void CheckForUpdates() = 0; | 164 virtual void CheckForUpdates() = 0; |
| 165 | 165 |
| 166 // Finds an entry (file or directory) by using |resource_id|. This call | 166 // Finds an entry (file or directory) by using |resource_id|. This call |
| 167 // does not initiate content refreshing. | 167 // does not initiate content refreshing. |
| 168 // | 168 // |
| 169 // |callback| must not be null. | 169 // |callback| must not be null. |
| 170 virtual void GetResourceEntryById( | 170 virtual void GetResourceEntryById( |
| 171 const std::string& resource_id, | 171 const std::string& resource_id, |
| 172 const GetResourceEntryWithFilePathCallback& callback) = 0; | 172 const GetResourceEntryCallback& callback) = 0; |
| 173 | 173 |
| 174 // Initiates transfer of |remote_src_file_path| to |local_dest_file_path|. | 174 // Initiates transfer of |remote_src_file_path| to |local_dest_file_path|. |
| 175 // |remote_src_file_path| is the virtual source path on the Drive file system. | 175 // |remote_src_file_path| is the virtual source path on the Drive file system. |
| 176 // |local_dest_file_path| is the destination path on the local file system. | 176 // |local_dest_file_path| is the destination path on the local file system. |
| 177 // | 177 // |
| 178 // |callback| must not be null. | 178 // |callback| must not be null. |
| 179 virtual void TransferFileFromRemoteToLocal( | 179 virtual void TransferFileFromRemoteToLocal( |
| 180 const base::FilePath& remote_src_file_path, | 180 const base::FilePath& remote_src_file_path, |
| 181 const base::FilePath& local_dest_file_path, | 181 const base::FilePath& local_dest_file_path, |
| 182 const FileOperationCallback& callback) = 0; | 182 const FileOperationCallback& callback) = 0; |
| (...skipping 270 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 453 const std::string& md5, | 453 const std::string& md5, |
| 454 const GetCacheEntryCallback& callback) = 0; | 454 const GetCacheEntryCallback& callback) = 0; |
| 455 | 455 |
| 456 // Reloads the file system feeds from the server. | 456 // Reloads the file system feeds from the server. |
| 457 virtual void Reload() = 0; | 457 virtual void Reload() = 0; |
| 458 }; | 458 }; |
| 459 | 459 |
| 460 } // namespace drive | 460 } // namespace drive |
| 461 | 461 |
| 462 #endif // CHROME_BROWSER_CHROMEOS_DRIVE_FILE_SYSTEM_INTERFACE_H_ | 462 #endif // CHROME_BROWSER_CHROMEOS_DRIVE_FILE_SYSTEM_INTERFACE_H_ |
| OLD | NEW |