| 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 141 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 152 virtual void GetCacheEntry( | 152 virtual void GetCacheEntry( |
| 153 const base::FilePath& drive_file_path, | 153 const base::FilePath& drive_file_path, |
| 154 const GetCacheEntryCallback& callback) OVERRIDE; | 154 const GetCacheEntryCallback& callback) OVERRIDE; |
| 155 virtual void Reload(const FileOperationCallback& callback) OVERRIDE; | 155 virtual void Reload(const FileOperationCallback& callback) OVERRIDE; |
| 156 | 156 |
| 157 // file_system::OperationObserver overrides. | 157 // file_system::OperationObserver overrides. |
| 158 virtual void OnDirectoryChangedByOperation( | 158 virtual void OnDirectoryChangedByOperation( |
| 159 const base::FilePath& directory_path) OVERRIDE; | 159 const base::FilePath& directory_path) OVERRIDE; |
| 160 virtual void OnCacheFileUploadNeededByOperation( | 160 virtual void OnCacheFileUploadNeededByOperation( |
| 161 const std::string& local_id) OVERRIDE; | 161 const std::string& local_id) OVERRIDE; |
| 162 virtual void OnEntryRemovedByOperation(const std::string& local_id) OVERRIDE; |
| 162 | 163 |
| 163 // ChangeListLoader::Observer overrides. | 164 // ChangeListLoader::Observer overrides. |
| 164 // Used to propagate events from ChangeListLoader. | 165 // Used to propagate events from ChangeListLoader. |
| 165 virtual void OnDirectoryChanged( | 166 virtual void OnDirectoryChanged( |
| 166 const base::FilePath& directory_path) OVERRIDE; | 167 const base::FilePath& directory_path) OVERRIDE; |
| 167 virtual void OnLoadFromServerComplete() OVERRIDE; | 168 virtual void OnLoadFromServerComplete() OVERRIDE; |
| 168 virtual void OnInitialLoadComplete() OVERRIDE; | 169 virtual void OnInitialLoadComplete() OVERRIDE; |
| 169 | 170 |
| 170 // Used by tests. | 171 // Used by tests. |
| 171 internal::ChangeListLoader* change_list_loader_for_testing() { | 172 internal::ChangeListLoader* change_list_loader_for_testing() { |
| (...skipping 126 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 298 // Note: This should remain the last member so it'll be destroyed and | 299 // Note: This should remain the last member so it'll be destroyed and |
| 299 // invalidate the weak pointers before any other members are destroyed. | 300 // invalidate the weak pointers before any other members are destroyed. |
| 300 base::WeakPtrFactory<FileSystem> weak_ptr_factory_; | 301 base::WeakPtrFactory<FileSystem> weak_ptr_factory_; |
| 301 | 302 |
| 302 DISALLOW_COPY_AND_ASSIGN(FileSystem); | 303 DISALLOW_COPY_AND_ASSIGN(FileSystem); |
| 303 }; | 304 }; |
| 304 | 305 |
| 305 } // namespace drive | 306 } // namespace drive |
| 306 | 307 |
| 307 #endif // CHROME_BROWSER_CHROMEOS_DRIVE_FILE_SYSTEM_H_ | 308 #endif // CHROME_BROWSER_CHROMEOS_DRIVE_FILE_SYSTEM_H_ |
| OLD | NEW |