| 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 28 matching lines...) Expand all Loading... |
| 39 class ChangeListLoader; | 39 class ChangeListLoader; |
| 40 class ResourceMetadata; | 40 class ResourceMetadata; |
| 41 class SyncClient; | 41 class SyncClient; |
| 42 } // namespace internal | 42 } // namespace internal |
| 43 | 43 |
| 44 namespace file_system { | 44 namespace file_system { |
| 45 class CopyOperation; | 45 class CopyOperation; |
| 46 class CreateDirectoryOperation; | 46 class CreateDirectoryOperation; |
| 47 class CreateFileOperation; | 47 class CreateFileOperation; |
| 48 class DownloadOperation; | 48 class DownloadOperation; |
| 49 class GetFileForSavingOperation; |
| 49 class MoveOperation; | 50 class MoveOperation; |
| 50 class OpenFileOperation; | 51 class OpenFileOperation; |
| 51 class OperationObserver; | 52 class OperationObserver; |
| 52 class RemoveOperation; | 53 class RemoveOperation; |
| 53 class SearchOperation; | 54 class SearchOperation; |
| 54 class TouchOperation; | 55 class TouchOperation; |
| 55 class TruncateOperation; | 56 class TruncateOperation; |
| 56 class UpdateOperation; | 57 class UpdateOperation; |
| 57 } // namespace file_system | 58 } // namespace file_system |
| 58 | 59 |
| (...skipping 56 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 115 const FileOperationCallback& callback) OVERRIDE; | 116 const FileOperationCallback& callback) OVERRIDE; |
| 116 virtual void TruncateFile(const base::FilePath& file_path, | 117 virtual void TruncateFile(const base::FilePath& file_path, |
| 117 int64 length, | 118 int64 length, |
| 118 const FileOperationCallback& callback) OVERRIDE; | 119 const FileOperationCallback& callback) OVERRIDE; |
| 119 virtual void Pin(const base::FilePath& file_path, | 120 virtual void Pin(const base::FilePath& file_path, |
| 120 const FileOperationCallback& callback) OVERRIDE; | 121 const FileOperationCallback& callback) OVERRIDE; |
| 121 virtual void Unpin(const base::FilePath& file_path, | 122 virtual void Unpin(const base::FilePath& file_path, |
| 122 const FileOperationCallback& callback) OVERRIDE; | 123 const FileOperationCallback& callback) OVERRIDE; |
| 123 virtual void GetFileByPath(const base::FilePath& file_path, | 124 virtual void GetFileByPath(const base::FilePath& file_path, |
| 124 const GetFileCallback& callback) OVERRIDE; | 125 const GetFileCallback& callback) OVERRIDE; |
| 126 virtual void GetFileByPathForSaving(const base::FilePath& file_path, |
| 127 const GetFileCallback& callback) OVERRIDE; |
| 125 virtual void GetFileContentByPath( | 128 virtual void GetFileContentByPath( |
| 126 const base::FilePath& file_path, | 129 const base::FilePath& file_path, |
| 127 const GetFileContentInitializedCallback& initialized_callback, | 130 const GetFileContentInitializedCallback& initialized_callback, |
| 128 const google_apis::GetContentCallback& get_content_callback, | 131 const google_apis::GetContentCallback& get_content_callback, |
| 129 const FileOperationCallback& completion_callback) OVERRIDE; | 132 const FileOperationCallback& completion_callback) OVERRIDE; |
| 130 virtual void GetResourceEntryByPath( | 133 virtual void GetResourceEntryByPath( |
| 131 const base::FilePath& file_path, | 134 const base::FilePath& file_path, |
| 132 const GetResourceEntryCallback& callback) OVERRIDE; | 135 const GetResourceEntryCallback& callback) OVERRIDE; |
| 133 virtual void ReadDirectoryByPath( | 136 virtual void ReadDirectoryByPath( |
| 134 const base::FilePath& directory_path, | 137 const base::FilePath& directory_path, |
| (...skipping 177 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 312 scoped_ptr<file_system::CreateDirectoryOperation> create_directory_operation_; | 315 scoped_ptr<file_system::CreateDirectoryOperation> create_directory_operation_; |
| 313 scoped_ptr<file_system::CreateFileOperation> create_file_operation_; | 316 scoped_ptr<file_system::CreateFileOperation> create_file_operation_; |
| 314 scoped_ptr<file_system::MoveOperation> move_operation_; | 317 scoped_ptr<file_system::MoveOperation> move_operation_; |
| 315 scoped_ptr<file_system::OpenFileOperation> open_file_operation_; | 318 scoped_ptr<file_system::OpenFileOperation> open_file_operation_; |
| 316 scoped_ptr<file_system::RemoveOperation> remove_operation_; | 319 scoped_ptr<file_system::RemoveOperation> remove_operation_; |
| 317 scoped_ptr<file_system::TouchOperation> touch_operation_; | 320 scoped_ptr<file_system::TouchOperation> touch_operation_; |
| 318 scoped_ptr<file_system::TruncateOperation> truncate_operation_; | 321 scoped_ptr<file_system::TruncateOperation> truncate_operation_; |
| 319 scoped_ptr<file_system::DownloadOperation> download_operation_; | 322 scoped_ptr<file_system::DownloadOperation> download_operation_; |
| 320 scoped_ptr<file_system::UpdateOperation> update_operation_; | 323 scoped_ptr<file_system::UpdateOperation> update_operation_; |
| 321 scoped_ptr<file_system::SearchOperation> search_operation_; | 324 scoped_ptr<file_system::SearchOperation> search_operation_; |
| 325 scoped_ptr<file_system::GetFileForSavingOperation> |
| 326 get_file_for_saving_operation_; |
| 322 | 327 |
| 323 // Note: This should remain the last member so it'll be destroyed and | 328 // Note: This should remain the last member so it'll be destroyed and |
| 324 // invalidate the weak pointers before any other members are destroyed. | 329 // invalidate the weak pointers before any other members are destroyed. |
| 325 base::WeakPtrFactory<FileSystem> weak_ptr_factory_; | 330 base::WeakPtrFactory<FileSystem> weak_ptr_factory_; |
| 326 | 331 |
| 327 DISALLOW_COPY_AND_ASSIGN(FileSystem); | 332 DISALLOW_COPY_AND_ASSIGN(FileSystem); |
| 328 }; | 333 }; |
| 329 | 334 |
| 330 } // namespace drive | 335 } // namespace drive |
| 331 | 336 |
| 332 #endif // CHROME_BROWSER_CHROMEOS_DRIVE_FILE_SYSTEM_H_ | 337 #endif // CHROME_BROWSER_CHROMEOS_DRIVE_FILE_SYSTEM_H_ |
| OLD | NEW |