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 129 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
140 void GetAvailableSpace(const GetAvailableSpaceCallback& callback) override; | 140 void GetAvailableSpace(const GetAvailableSpaceCallback& callback) override; |
141 void GetShareUrl(const base::FilePath& file_path, | 141 void GetShareUrl(const base::FilePath& file_path, |
142 const GURL& embed_origin, | 142 const GURL& embed_origin, |
143 const GetShareUrlCallback& callback) override; | 143 const GetShareUrlCallback& callback) override; |
144 void GetMetadata(const GetFilesystemMetadataCallback& callback) override; | 144 void GetMetadata(const GetFilesystemMetadataCallback& callback) override; |
145 void MarkCacheFileAsMounted(const base::FilePath& drive_file_path, | 145 void MarkCacheFileAsMounted(const base::FilePath& drive_file_path, |
146 const MarkMountedCallback& callback) override; | 146 const MarkMountedCallback& callback) override; |
147 void MarkCacheFileAsUnmounted(const base::FilePath& cache_file_path, | 147 void MarkCacheFileAsUnmounted(const base::FilePath& cache_file_path, |
148 const FileOperationCallback& callback) override; | 148 const FileOperationCallback& callback) override; |
149 void AddPermission(const base::FilePath& drive_file_path, | 149 void AddPermission(const base::FilePath& drive_file_path, |
150 const std::string& email, | 150 const user_manager::UserID& email, |
151 google_apis::drive::PermissionRole role, | 151 google_apis::drive::PermissionRole role, |
152 const FileOperationCallback& callback) override; | 152 const FileOperationCallback& callback) override; |
153 void SetProperty(const base::FilePath& drive_file_path, | 153 void SetProperty(const base::FilePath& drive_file_path, |
154 google_apis::drive::Property::Visibility visibility, | 154 google_apis::drive::Property::Visibility visibility, |
155 const std::string& key, | 155 const std::string& key, |
156 const std::string& value, | 156 const std::string& value, |
157 const FileOperationCallback& callback) override; | 157 const FileOperationCallback& callback) override; |
158 void Reset(const FileOperationCallback& callback) override; | 158 void Reset(const FileOperationCallback& callback) override; |
159 void GetPathFromResourceId(const std::string& resource_id, | 159 void GetPathFromResourceId(const std::string& resource_id, |
160 const GetFilePathCallback& callback) override; | 160 const GetFilePathCallback& callback) override; |
(...skipping 63 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
224 void GetShareUrlAfterGetResourceEntry(const base::FilePath& file_path, | 224 void GetShareUrlAfterGetResourceEntry(const base::FilePath& file_path, |
225 const GURL& embed_origin, | 225 const GURL& embed_origin, |
226 const GetShareUrlCallback& callback, | 226 const GetShareUrlCallback& callback, |
227 ResourceEntry* entry, | 227 ResourceEntry* entry, |
228 FileError error); | 228 FileError error); |
229 void OnGetResourceEntryForGetShareUrl(const GetShareUrlCallback& callback, | 229 void OnGetResourceEntryForGetShareUrl(const GetShareUrlCallback& callback, |
230 google_apis::DriveApiErrorCode status, | 230 google_apis::DriveApiErrorCode status, |
231 const GURL& share_url); | 231 const GURL& share_url); |
232 // Part of AddPermission. | 232 // Part of AddPermission. |
233 void AddPermissionAfterGetResourceEntry( | 233 void AddPermissionAfterGetResourceEntry( |
234 const std::string& email, | 234 const user_manager::UserID& email, |
235 google_apis::drive::PermissionRole role, | 235 google_apis::drive::PermissionRole role, |
236 const FileOperationCallback& callback, | 236 const FileOperationCallback& callback, |
237 ResourceEntry* entry, | 237 ResourceEntry* entry, |
238 FileError error); | 238 FileError error); |
239 | 239 |
240 // Part of OnDriveSyncError(). | 240 // Part of OnDriveSyncError(). |
241 virtual void OnDriveSyncErrorAfterGetFilePath( | 241 virtual void OnDriveSyncErrorAfterGetFilePath( |
242 file_system::DriveSyncErrorType type, | 242 file_system::DriveSyncErrorType type, |
243 const base::FilePath* file_path, | 243 const base::FilePath* file_path, |
244 FileError error); | 244 FileError error); |
(...skipping 50 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
295 // 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 |
296 // invalidate the weak pointers before any other members are destroyed. | 296 // invalidate the weak pointers before any other members are destroyed. |
297 base::WeakPtrFactory<FileSystem> weak_ptr_factory_; | 297 base::WeakPtrFactory<FileSystem> weak_ptr_factory_; |
298 | 298 |
299 DISALLOW_COPY_AND_ASSIGN(FileSystem); | 299 DISALLOW_COPY_AND_ASSIGN(FileSystem); |
300 }; | 300 }; |
301 | 301 |
302 } // namespace drive | 302 } // namespace drive |
303 | 303 |
304 #endif // CHROME_BROWSER_CHROMEOS_DRIVE_FILE_SYSTEM_H_ | 304 #endif // CHROME_BROWSER_CHROMEOS_DRIVE_FILE_SYSTEM_H_ |
OLD | NEW |