| 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 426 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 437 // Note that this method expects that the |cached_file_path| is the path | 437 // Note that this method expects that the |cached_file_path| is the path |
| 438 // returned by MarkCacheFileAsMounted(). | 438 // returned by MarkCacheFileAsMounted(). |
| 439 // |callback| must not be null. | 439 // |callback| must not be null. |
| 440 virtual void MarkCacheFileAsUnmounted( | 440 virtual void MarkCacheFileAsUnmounted( |
| 441 const base::FilePath& cache_file_path, | 441 const base::FilePath& cache_file_path, |
| 442 const FileOperationCallback& callback) = 0; | 442 const FileOperationCallback& callback) = 0; |
| 443 | 443 |
| 444 // Gets the cache entry for file corresponding to |resource_id| and |md5| | 444 // Gets the cache entry for file corresponding to |resource_id| and |md5| |
| 445 // and runs |callback| with true and the found entry if the entry exists | 445 // and runs |callback| with true and the found entry if the entry exists |
| 446 // in the cache map. Otherwise, runs |callback| with false. | 446 // in the cache map. Otherwise, runs |callback| with false. |
| 447 // |md5| can be empty if only matching |resource_id| is desired, which may | 447 // |md5| can be empty if only matching |resource_id| is desired. |
| 448 // happen when looking for pinned entries where symlinks' filenames have no | |
| 449 // extension and hence no md5. | |
| 450 // |callback| must not be null. | 448 // |callback| must not be null. |
| 451 virtual void GetCacheEntryByResourceId( | 449 virtual void GetCacheEntryByResourceId( |
| 452 const std::string& resource_id, | 450 const std::string& resource_id, |
| 453 const std::string& md5, | 451 const std::string& md5, |
| 454 const GetCacheEntryCallback& callback) = 0; | 452 const GetCacheEntryCallback& callback) = 0; |
| 455 | 453 |
| 456 // Reloads the file system feeds from the server. | 454 // Reloads the file system feeds from the server. |
| 457 virtual void Reload() = 0; | 455 virtual void Reload() = 0; |
| 458 }; | 456 }; |
| 459 | 457 |
| 460 } // namespace drive | 458 } // namespace drive |
| 461 | 459 |
| 462 #endif // CHROME_BROWSER_CHROMEOS_DRIVE_FILE_SYSTEM_INTERFACE_H_ | 460 #endif // CHROME_BROWSER_CHROMEOS_DRIVE_FILE_SYSTEM_INTERFACE_H_ |
| OLD | NEW |