| 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 103 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 114 int64 bytes_used)> GetAvailableSpaceCallback; | 114 int64 bytes_used)> GetAvailableSpaceCallback; |
| 115 | 115 |
| 116 // Used to get drive filesystem metadata. | 116 // Used to get drive filesystem metadata. |
| 117 typedef base::Callback<void(const DriveFileSystemMetadata&)> | 117 typedef base::Callback<void(const DriveFileSystemMetadata&)> |
| 118 GetFilesystemMetadataCallback; | 118 GetFilesystemMetadataCallback; |
| 119 | 119 |
| 120 // Priority of a job. Higher values are lower priority. | 120 // Priority of a job. Higher values are lower priority. |
| 121 enum ContextType { | 121 enum ContextType { |
| 122 USER_INITIATED, | 122 USER_INITIATED, |
| 123 BACKGROUND, | 123 BACKGROUND, |
| 124 PREFETCH, | |
| 125 }; | 124 }; |
| 126 | 125 |
| 127 struct DriveClientContext { | 126 struct DriveClientContext { |
| 128 explicit DriveClientContext(ContextType in_type) : type(in_type) {} | 127 explicit DriveClientContext(ContextType in_type) : type(in_type) {} |
| 129 ContextType type; | 128 ContextType type; |
| 130 }; | 129 }; |
| 131 | 130 |
| 132 // Option enum to control eligible entries for searchMetadata(). | 131 // Option enum to control eligible entries for searchMetadata(). |
| 133 // SEARCH_METADATA_ALL is the default to investigate all the entries. | 132 // SEARCH_METADATA_ALL is the default to investigate all the entries. |
| 134 // SEARCH_METADATA_EXCLUDE_HOSTED_DOCUMENTS excludes the hosted documents. | 133 // SEARCH_METADATA_EXCLUDE_HOSTED_DOCUMENTS excludes the hosted documents. |
| (...skipping 330 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 465 virtual void IterateCache(const CacheIterateCallback& iteration_callback, | 464 virtual void IterateCache(const CacheIterateCallback& iteration_callback, |
| 466 const base::Closure& completion_callback) = 0; | 465 const base::Closure& completion_callback) = 0; |
| 467 | 466 |
| 468 // Reloads the file system feeds from the server. | 467 // Reloads the file system feeds from the server. |
| 469 virtual void Reload() = 0; | 468 virtual void Reload() = 0; |
| 470 }; | 469 }; |
| 471 | 470 |
| 472 } // namespace drive | 471 } // namespace drive |
| 473 | 472 |
| 474 #endif // CHROME_BROWSER_CHROMEOS_DRIVE_DRIVE_FILE_SYSTEM_INTERFACE_H_ | 473 #endif // CHROME_BROWSER_CHROMEOS_DRIVE_DRIVE_FILE_SYSTEM_INTERFACE_H_ |
| OLD | NEW |