| 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_H_ | 5 #ifndef CHROME_BROWSER_CHROMEOS_DRIVE_FILE_SYSTEM_H_ |
| 6 #define CHROME_BROWSER_CHROMEOS_DRIVE_FILE_SYSTEM_H_ | 6 #define CHROME_BROWSER_CHROMEOS_DRIVE_FILE_SYSTEM_H_ |
| 7 | 7 |
| 8 #include <string> | 8 #include <string> |
| 9 #include <vector> | 9 #include <vector> |
| 10 | 10 |
| (...skipping 145 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 156 virtual void AddPermission(const base::FilePath& drive_file_path, | 156 virtual void AddPermission(const base::FilePath& drive_file_path, |
| 157 const std::string& email, | 157 const std::string& email, |
| 158 google_apis::drive::PermissionRole role, | 158 google_apis::drive::PermissionRole role, |
| 159 const FileOperationCallback& callback) OVERRIDE; | 159 const FileOperationCallback& callback) OVERRIDE; |
| 160 virtual void Reset(const FileOperationCallback& callback) OVERRIDE; | 160 virtual void Reset(const FileOperationCallback& callback) OVERRIDE; |
| 161 virtual void GetPathFromResourceId(const std::string& resource_id, | 161 virtual void GetPathFromResourceId(const std::string& resource_id, |
| 162 const GetFilePathCallback& callback) | 162 const GetFilePathCallback& callback) |
| 163 OVERRIDE; | 163 OVERRIDE; |
| 164 | 164 |
| 165 // file_system::OperationObserver overrides. | 165 // file_system::OperationObserver overrides. |
| 166 virtual void OnDirectoryChangedByOperation( | 166 virtual void OnFileChangedByOperation( |
| 167 const base::FilePath& directory_path) OVERRIDE; | 167 const FileChange& changed_files) OVERRIDE; |
| 168 virtual void OnEntryUpdatedByOperation(const std::string& local_id) OVERRIDE; | 168 virtual void OnEntryUpdatedByOperation(const std::string& local_id) OVERRIDE; |
| 169 virtual void OnDriveSyncError(file_system::DriveSyncErrorType type, | 169 virtual void OnDriveSyncError(file_system::DriveSyncErrorType type, |
| 170 const std::string& local_id) OVERRIDE; | 170 const std::string& local_id) OVERRIDE; |
| 171 | 171 |
| 172 // ChangeListLoader::Observer overrides. | 172 // ChangeListLoader::Observer overrides. |
| 173 // Used to propagate events from ChangeListLoader. | 173 // Used to propagate events from ChangeListLoader. |
| 174 virtual void OnDirectoryChanged( | 174 virtual void OnDirectoryReloaded( |
| 175 const base::FilePath& directory_path) OVERRIDE; | 175 const base::FilePath& directory_path) OVERRIDE; |
| 176 virtual void OnFileChanged(const FileChange& changed_files) OVERRIDE; |
| 176 virtual void OnLoadFromServerComplete() OVERRIDE; | 177 virtual void OnLoadFromServerComplete() OVERRIDE; |
| 177 virtual void OnInitialLoadComplete() OVERRIDE; | 178 virtual void OnInitialLoadComplete() OVERRIDE; |
| 178 | 179 |
| 179 // Used by tests. | 180 // Used by tests. |
| 180 internal::ChangeListLoader* change_list_loader_for_testing() { | 181 internal::ChangeListLoader* change_list_loader_for_testing() { |
| 181 return change_list_loader_.get(); | 182 return change_list_loader_.get(); |
| 182 } | 183 } |
| 183 internal::SyncClient* sync_client_for_testing() { return sync_client_.get(); } | 184 internal::SyncClient* sync_client_for_testing() { return sync_client_.get(); } |
| 184 | 185 |
| 185 private: | 186 private: |
| (...skipping 108 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 294 // Note: This should remain the last member so it'll be destroyed and | 295 // Note: This should remain the last member so it'll be destroyed and |
| 295 // invalidate the weak pointers before any other members are destroyed. | 296 // invalidate the weak pointers before any other members are destroyed. |
| 296 base::WeakPtrFactory<FileSystem> weak_ptr_factory_; | 297 base::WeakPtrFactory<FileSystem> weak_ptr_factory_; |
| 297 | 298 |
| 298 DISALLOW_COPY_AND_ASSIGN(FileSystem); | 299 DISALLOW_COPY_AND_ASSIGN(FileSystem); |
| 299 }; | 300 }; |
| 300 | 301 |
| 301 } // namespace drive | 302 } // namespace drive |
| 302 | 303 |
| 303 #endif // CHROME_BROWSER_CHROMEOS_DRIVE_FILE_SYSTEM_H_ | 304 #endif // CHROME_BROWSER_CHROMEOS_DRIVE_FILE_SYSTEM_H_ |
| OLD | NEW |