| 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 COMPONENTS_DRIVE_CHROMEOS_FILE_SYSTEM_H_ | 5 #ifndef COMPONENTS_DRIVE_CHROMEOS_FILE_SYSTEM_H_ |
| 6 #define COMPONENTS_DRIVE_CHROMEOS_FILE_SYSTEM_H_ | 6 #define COMPONENTS_DRIVE_CHROMEOS_FILE_SYSTEM_H_ |
| 7 | 7 |
| 8 #include <stdint.h> | 8 #include <stdint.h> |
| 9 | 9 |
| 10 #include <memory> | 10 #include <memory> |
| (...skipping 147 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 158 void SetProperty(const base::FilePath& drive_file_path, | 158 void SetProperty(const base::FilePath& drive_file_path, |
| 159 google_apis::drive::Property::Visibility visibility, | 159 google_apis::drive::Property::Visibility visibility, |
| 160 const std::string& key, | 160 const std::string& key, |
| 161 const std::string& value, | 161 const std::string& value, |
| 162 const FileOperationCallback& callback) override; | 162 const FileOperationCallback& callback) override; |
| 163 void Reset(const FileOperationCallback& callback) override; | 163 void Reset(const FileOperationCallback& callback) override; |
| 164 void GetPathFromResourceId(const std::string& resource_id, | 164 void GetPathFromResourceId(const std::string& resource_id, |
| 165 const GetFilePathCallback& callback) override; | 165 const GetFilePathCallback& callback) override; |
| 166 void FreeDiskSpaceIfNeededFor(int64_t num_bytes, | 166 void FreeDiskSpaceIfNeededFor(int64_t num_bytes, |
| 167 const FreeDiskSpaceCallback& callback) override; | 167 const FreeDiskSpaceCallback& callback) override; |
| 168 void CalculateEvictableCacheSize( | 168 void CalculateCacheSize(const CacheSizeCallback& callback) override; |
| 169 const EvictableCacheSizeCallback& callback) override; | 169 void CalculateEvictableCacheSize(const CacheSizeCallback& callback) override; |
| 170 | 170 |
| 171 // file_system::OperationDelegate overrides. | 171 // file_system::OperationDelegate overrides. |
| 172 void OnFileChangedByOperation(const FileChange& changed_files) override; | 172 void OnFileChangedByOperation(const FileChange& changed_files) override; |
| 173 void OnEntryUpdatedByOperation(const ClientContext& context, | 173 void OnEntryUpdatedByOperation(const ClientContext& context, |
| 174 const std::string& local_id) override; | 174 const std::string& local_id) override; |
| 175 void OnDriveSyncError(file_system::DriveSyncErrorType type, | 175 void OnDriveSyncError(file_system::DriveSyncErrorType type, |
| 176 const std::string& local_id) override; | 176 const std::string& local_id) override; |
| 177 bool WaitForSyncComplete(const std::string& local_id, | 177 bool WaitForSyncComplete(const std::string& local_id, |
| 178 const FileOperationCallback& callback) override; | 178 const FileOperationCallback& callback) override; |
| 179 | 179 |
| (...skipping 126 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 306 // Note: This should remain the last member so it'll be destroyed and | 306 // Note: This should remain the last member so it'll be destroyed and |
| 307 // invalidate the weak pointers before any other members are destroyed. | 307 // invalidate the weak pointers before any other members are destroyed. |
| 308 base::WeakPtrFactory<FileSystem> weak_ptr_factory_; | 308 base::WeakPtrFactory<FileSystem> weak_ptr_factory_; |
| 309 | 309 |
| 310 DISALLOW_COPY_AND_ASSIGN(FileSystem); | 310 DISALLOW_COPY_AND_ASSIGN(FileSystem); |
| 311 }; | 311 }; |
| 312 | 312 |
| 313 } // namespace drive | 313 } // namespace drive |
| 314 | 314 |
| 315 #endif // COMPONENTS_DRIVE_CHROMEOS_FILE_SYSTEM_H_ | 315 #endif // COMPONENTS_DRIVE_CHROMEOS_FILE_SYSTEM_H_ |
| OLD | NEW |