Chromium Code Reviews| 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 |
| 11 #include "base/memory/scoped_ptr.h" | 11 #include "base/memory/scoped_ptr.h" |
| 12 #include "chrome/browser/chromeos/drive/drive.pb.h" | 12 #include "chrome/browser/chromeos/drive/drive.pb.h" |
| 13 #include "chrome/browser/chromeos/drive/drive_cache.h" | 13 #include "chrome/browser/chromeos/drive/drive_cache.h" |
| 14 #include "chrome/browser/chromeos/drive/drive_file_system_metadata.h" | 14 #include "chrome/browser/chromeos/drive/file_system_metadata.h" |
| 15 #include "chrome/browser/chromeos/drive/resource_metadata.h" | 15 #include "chrome/browser/chromeos/drive/resource_metadata.h" |
| 16 #include "chrome/browser/google_apis/gdata_wapi_operations.h" | 16 #include "chrome/browser/google_apis/gdata_wapi_operations.h" |
| 17 | 17 |
| 18 namespace google_apis { | 18 namespace google_apis { |
| 19 class ResourceEntry; | 19 class ResourceEntry; |
| 20 } | 20 } |
| 21 | 21 |
| 22 namespace drive { | 22 namespace drive { |
| 23 | 23 |
| 24 class FileSystemObserver; | 24 class FileSystemObserver; |
| (...skipping 88 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 113 // Used to open files from the file system. |file_path| is the path on the local | 113 // Used to open files from the file system. |file_path| is the path on the local |
| 114 // file system for the opened file. | 114 // file system for the opened file. |
| 115 typedef base::Callback<void(FileError error, | 115 typedef base::Callback<void(FileError error, |
| 116 const base::FilePath& file_path)> OpenFileCallback; | 116 const base::FilePath& file_path)> OpenFileCallback; |
| 117 | 117 |
| 118 // Used to get available space for the account from Drive. | 118 // Used to get available space for the account from Drive. |
| 119 typedef base::Callback<void(FileError error, | 119 typedef base::Callback<void(FileError error, |
| 120 int64 bytes_total, | 120 int64 bytes_total, |
| 121 int64 bytes_used)> GetAvailableSpaceCallback; | 121 int64 bytes_used)> GetAvailableSpaceCallback; |
| 122 | 122 |
| 123 // Used to get drive filesystem metadata. | 123 // Used to get drive filesystem metadata. |
|
hashimoto
2013/04/30 08:07:22
nit: Remove 'drive' here too?
satorux1
2013/04/30 08:13:49
Done.
| |
| 124 typedef base::Callback<void(const DriveFileSystemMetadata&)> | 124 typedef base::Callback<void(const FileSystemMetadata&)> |
| 125 GetFilesystemMetadataCallback; | 125 GetFilesystemMetadataCallback; |
| 126 | 126 |
| 127 // Priority of a job. Higher values are lower priority. | 127 // Priority of a job. Higher values are lower priority. |
| 128 enum ContextType { | 128 enum ContextType { |
| 129 USER_INITIATED, | 129 USER_INITIATED, |
| 130 BACKGROUND, | 130 BACKGROUND, |
| 131 }; | 131 }; |
| 132 | 132 |
| 133 struct DriveClientContext { | 133 struct DriveClientContext { |
| 134 explicit DriveClientContext(ContextType in_type) : type(in_type) {} | 134 explicit DriveClientContext(ContextType in_type) : type(in_type) {} |
| (...skipping 322 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 457 virtual void IterateCache(const CacheIterateCallback& iteration_callback, | 457 virtual void IterateCache(const CacheIterateCallback& iteration_callback, |
| 458 const base::Closure& completion_callback) = 0; | 458 const base::Closure& completion_callback) = 0; |
| 459 | 459 |
| 460 // Reloads the file system feeds from the server. | 460 // Reloads the file system feeds from the server. |
| 461 virtual void Reload() = 0; | 461 virtual void Reload() = 0; |
| 462 }; | 462 }; |
| 463 | 463 |
| 464 } // namespace drive | 464 } // namespace drive |
| 465 | 465 |
| 466 #endif // CHROME_BROWSER_CHROMEOS_DRIVE_DRIVE_FILE_SYSTEM_INTERFACE_H_ | 466 #endif // CHROME_BROWSER_CHROMEOS_DRIVE_DRIVE_FILE_SYSTEM_INTERFACE_H_ |
| OLD | NEW |