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_H_ | 5 #ifndef CHROME_BROWSER_CHROMEOS_DRIVE_DRIVE_FILE_SYSTEM_H_ |
6 #define CHROME_BROWSER_CHROMEOS_DRIVE_DRIVE_FILE_SYSTEM_H_ | 6 #define CHROME_BROWSER_CHROMEOS_DRIVE_DRIVE_FILE_SYSTEM_H_ |
7 | 7 |
8 #include <string> | 8 #include <string> |
9 #include <vector> | 9 #include <vector> |
10 | 10 |
(...skipping 116 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
127 const FilePath& directory_path, | 127 const FilePath& directory_path, |
128 const ReadDirectoryWithSettingCallback& callback) OVERRIDE; | 128 const ReadDirectoryWithSettingCallback& callback) OVERRIDE; |
129 virtual void RequestDirectoryRefresh( | 129 virtual void RequestDirectoryRefresh( |
130 const FilePath& directory_path) OVERRIDE; | 130 const FilePath& directory_path) OVERRIDE; |
131 virtual void GetAvailableSpace( | 131 virtual void GetAvailableSpace( |
132 const GetAvailableSpaceCallback& callback) OVERRIDE; | 132 const GetAvailableSpaceCallback& callback) OVERRIDE; |
133 virtual void AddUploadedFile(const FilePath& directory_path, | 133 virtual void AddUploadedFile(const FilePath& directory_path, |
134 scoped_ptr<google_apis::ResourceEntry> doc_entry, | 134 scoped_ptr<google_apis::ResourceEntry> doc_entry, |
135 const FilePath& file_content_path, | 135 const FilePath& file_content_path, |
136 const FileOperationCallback& callback) OVERRIDE; | 136 const FileOperationCallback& callback) OVERRIDE; |
137 virtual DriveFileSystemMetadata GetMetadata() const OVERRIDE; | 137 virtual void GetMetadata( |
| 138 const GetFilesystemMetadataCallback& callback) OVERRIDE; |
138 virtual void Reload() OVERRIDE; | 139 virtual void Reload() OVERRIDE; |
139 | 140 |
140 // file_system::OperationObserver overrides. | 141 // file_system::OperationObserver overrides. |
141 virtual void OnDirectoryChangedByOperation( | 142 virtual void OnDirectoryChangedByOperation( |
142 const FilePath& directory_path) OVERRIDE; | 143 const FilePath& directory_path) OVERRIDE; |
143 | 144 |
144 // DriveFeedLoader::Observer overrides. | 145 // DriveFeedLoader::Observer overrides. |
145 // Used to propagate events from DriveFeedLoader. | 146 // Used to propagate events from DriveFeedLoader. |
146 virtual void OnDirectoryChanged(const FilePath& directory_path) OVERRIDE; | 147 virtual void OnDirectoryChanged(const FilePath& directory_path) OVERRIDE; |
147 virtual void OnResourceListFetched(int num_accumulated_entries) OVERRIDE; | 148 virtual void OnResourceListFetched(int num_accumulated_entries) OVERRIDE; |
(...skipping 519 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
667 // invalidate the weak pointers before any other members are destroyed. | 668 // invalidate the weak pointers before any other members are destroyed. |
668 base::WeakPtrFactory<DriveFileSystem> ui_weak_ptr_factory_; | 669 base::WeakPtrFactory<DriveFileSystem> ui_weak_ptr_factory_; |
669 // Unlike other classes, we need this as we need this to redirect a task | 670 // Unlike other classes, we need this as we need this to redirect a task |
670 // from IO thread to UI thread. | 671 // from IO thread to UI thread. |
671 base::WeakPtr<DriveFileSystem> ui_weak_ptr_; | 672 base::WeakPtr<DriveFileSystem> ui_weak_ptr_; |
672 }; | 673 }; |
673 | 674 |
674 } // namespace drive | 675 } // namespace drive |
675 | 676 |
676 #endif // CHROME_BROWSER_CHROMEOS_DRIVE_DRIVE_FILE_SYSTEM_H_ | 677 #endif // CHROME_BROWSER_CHROMEOS_DRIVE_DRIVE_FILE_SYSTEM_H_ |
OLD | NEW |