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 235 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
246 void CloseFileFinalize(const base::FilePath& file_path, | 246 void CloseFileFinalize(const base::FilePath& file_path, |
247 const FileOperationCallback& callback, | 247 const FileOperationCallback& callback, |
248 FileError result); | 248 FileError result); |
249 | 249 |
250 // Callback for handling about resource fetch. | 250 // Callback for handling about resource fetch. |
251 void OnGetAboutResource( | 251 void OnGetAboutResource( |
252 const GetAvailableSpaceCallback& callback, | 252 const GetAvailableSpaceCallback& callback, |
253 google_apis::GDataErrorCode status, | 253 google_apis::GDataErrorCode status, |
254 scoped_ptr<google_apis::AboutResource> about_resource); | 254 scoped_ptr<google_apis::AboutResource> about_resource); |
255 | 255 |
256 // Callback for handling results of ReloadFeedFromServerIfNeeded() initiated | 256 // Part of CheckForUpdates(). Called when |
257 // from CheckForUpdates(). | 257 // ChangeListLoader::CheckForUpdates() is complete. |
258 void OnUpdateChecked(FileError error); | 258 void OnUpdateChecked(FileError error); |
259 | 259 |
260 // Changes state of hosted documents visibility, triggers directory refresh. | 260 // Changes state of hosted documents visibility, triggers directory refresh. |
261 void SetHideHostedDocuments(bool hide); | 261 void SetHideHostedDocuments(bool hide); |
262 | 262 |
263 // Initializes preference change observer. | 263 // Initializes preference change observer. |
264 void InitializePreferenceObserver(); | 264 void InitializePreferenceObserver(); |
265 | 265 |
266 // Part of GetResourceEntryByPath() | 266 // Part of GetResourceEntryByPath() |
267 // 1) Called when ResourceMetadata::GetResourceEntryByPath() is complete. | 267 // 1) Called when ResourceMetadata::GetResourceEntryByPath() is complete. |
(...skipping 129 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
397 // Note: This should remain the last member so it'll be destroyed and | 397 // Note: This should remain the last member so it'll be destroyed and |
398 // invalidate the weak pointers before any other members are destroyed. | 398 // invalidate the weak pointers before any other members are destroyed. |
399 base::WeakPtrFactory<FileSystem> weak_ptr_factory_; | 399 base::WeakPtrFactory<FileSystem> weak_ptr_factory_; |
400 | 400 |
401 DISALLOW_COPY_AND_ASSIGN(FileSystem); | 401 DISALLOW_COPY_AND_ASSIGN(FileSystem); |
402 }; | 402 }; |
403 | 403 |
404 } // namespace drive | 404 } // namespace drive |
405 | 405 |
406 #endif // CHROME_BROWSER_CHROMEOS_DRIVE_FILE_SYSTEM_H_ | 406 #endif // CHROME_BROWSER_CHROMEOS_DRIVE_FILE_SYSTEM_H_ |
OLD | NEW |