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_DRIVE_FILE_SYSTEM_INTERFACE_H_ | 5 #ifndef CHROME_BROWSER_CHROMEOS_DRIVE_DRIVE_FILE_SYSTEM_INTERFACE_H_ |
6 #define CHROME_BROWSER_CHROMEOS_DRIVE_DRIVE_FILE_SYSTEM_INTERFACE_H_ | 6 #define CHROME_BROWSER_CHROMEOS_DRIVE_DRIVE_FILE_SYSTEM_INTERFACE_H_ |
7 | 7 |
8 #include <string> | 8 #include <string> |
9 #include <vector> | 9 #include <vector> |
10 | 10 |
(...skipping 318 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
329 virtual void GetFileContentByPath( | 329 virtual void GetFileContentByPath( |
330 const base::FilePath& file_path, | 330 const base::FilePath& file_path, |
331 const GetFileContentInitializedCallback& initialized_callback, | 331 const GetFileContentInitializedCallback& initialized_callback, |
332 const google_apis::GetContentCallback& get_content_callback, | 332 const google_apis::GetContentCallback& get_content_callback, |
333 const FileOperationCallback& completion_callback) = 0; | 333 const FileOperationCallback& completion_callback) = 0; |
334 | 334 |
335 // Cancels the file fetch of |drive_file_path|, which can be retieved by | 335 // Cancels the file fetch of |drive_file_path|, which can be retieved by |
336 // GetEntryInfoByResourceId. | 336 // GetEntryInfoByResourceId. |
337 // The currently the running task is identified by file path on drive, | 337 // The currently the running task is identified by file path on drive, |
338 // so this method takes it as a task identifier. | 338 // so this method takes it as a task identifier. |
339 // Note that we will moving tha task managing into DriveScheduler, and | 339 // Note that we will moving tha task managing into JobScheduler, and |
340 // currently it is planned to use some task ID at that time. | 340 // currently it is planned to use some task ID at that time. |
341 // Once it is done, we can use the ID from this method. | 341 // Once it is done, we can use the ID from this method. |
342 // Also note that the interface looks a little bit weird because the task | 342 // Also note that the interface looks a little bit weird because the task |
343 // is started by GetFileByResourceId, which identifies a file by | 343 // is started by GetFileByResourceId, which identifies a file by |
344 // |resource_id|, but this method does by |drive_file_path|. This | 344 // |resource_id|, but this method does by |drive_file_path|. This |
345 // inconsistency is introduced to work with the existing code and should be | 345 // inconsistency is introduced to work with the existing code and should be |
346 // cleaned up. | 346 // cleaned up. |
347 virtual void CancelGetFile(const base::FilePath& drive_file_path) = 0; | 347 virtual void CancelGetFile(const base::FilePath& drive_file_path) = 0; |
348 | 348 |
349 // Updates a file by the given |resource_id| on the Drive server by | 349 // Updates a file by the given |resource_id| on the Drive server by |
(...skipping 115 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
465 virtual void IterateCache(const CacheIterateCallback& iteration_callback, | 465 virtual void IterateCache(const CacheIterateCallback& iteration_callback, |
466 const base::Closure& completion_callback) = 0; | 466 const base::Closure& completion_callback) = 0; |
467 | 467 |
468 // Reloads the file system feeds from the server. | 468 // Reloads the file system feeds from the server. |
469 virtual void Reload() = 0; | 469 virtual void Reload() = 0; |
470 }; | 470 }; |
471 | 471 |
472 } // namespace drive | 472 } // namespace drive |
473 | 473 |
474 #endif // CHROME_BROWSER_CHROMEOS_DRIVE_DRIVE_FILE_SYSTEM_INTERFACE_H_ | 474 #endif // CHROME_BROWSER_CHROMEOS_DRIVE_DRIVE_FILE_SYSTEM_INTERFACE_H_ |
OLD | NEW |