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 94 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
105 const base::Time& last_modified_time, | 105 const base::Time& last_modified_time, |
106 const FileOperationCallback& callback) OVERRIDE; | 106 const FileOperationCallback& callback) OVERRIDE; |
107 virtual void Pin(const base::FilePath& file_path, | 107 virtual void Pin(const base::FilePath& file_path, |
108 const FileOperationCallback& callback) OVERRIDE; | 108 const FileOperationCallback& callback) OVERRIDE; |
109 virtual void Unpin(const base::FilePath& file_path, | 109 virtual void Unpin(const base::FilePath& file_path, |
110 const FileOperationCallback& callback) OVERRIDE; | 110 const FileOperationCallback& callback) OVERRIDE; |
111 virtual void GetFileByPath(const base::FilePath& file_path, | 111 virtual void GetFileByPath(const base::FilePath& file_path, |
112 const GetFileCallback& callback) OVERRIDE; | 112 const GetFileCallback& callback) OVERRIDE; |
113 virtual void GetFileByResourceId( | 113 virtual void GetFileByResourceId( |
114 const std::string& resource_id, | 114 const std::string& resource_id, |
115 const DriveClientContext& context, | 115 const ClientContext& context, |
116 const GetFileCallback& get_file_callback, | 116 const GetFileCallback& get_file_callback, |
117 const google_apis::GetContentCallback& get_content_callback) OVERRIDE; | 117 const google_apis::GetContentCallback& get_content_callback) OVERRIDE; |
118 virtual void GetFileContentByPath( | 118 virtual void GetFileContentByPath( |
119 const base::FilePath& file_path, | 119 const base::FilePath& file_path, |
120 const GetFileContentInitializedCallback& initialized_callback, | 120 const GetFileContentInitializedCallback& initialized_callback, |
121 const google_apis::GetContentCallback& get_content_callback, | 121 const google_apis::GetContentCallback& get_content_callback, |
122 const FileOperationCallback& completion_callback) OVERRIDE; | 122 const FileOperationCallback& completion_callback) OVERRIDE; |
123 virtual void UpdateFileByResourceId( | 123 virtual void UpdateFileByResourceId( |
124 const std::string& resource_id, | 124 const std::string& resource_id, |
125 const DriveClientContext& context, | 125 const ClientContext& context, |
126 const FileOperationCallback& callback) OVERRIDE; | 126 const FileOperationCallback& callback) OVERRIDE; |
127 virtual void GetResourceEntryByPath( | 127 virtual void GetResourceEntryByPath( |
128 const base::FilePath& file_path, | 128 const base::FilePath& file_path, |
129 const GetResourceEntryCallback& callback) OVERRIDE; | 129 const GetResourceEntryCallback& callback) OVERRIDE; |
130 virtual void ReadDirectoryByPath( | 130 virtual void ReadDirectoryByPath( |
131 const base::FilePath& directory_path, | 131 const base::FilePath& directory_path, |
132 const ReadDirectoryWithSettingCallback& callback) OVERRIDE; | 132 const ReadDirectoryWithSettingCallback& callback) OVERRIDE; |
133 virtual void RefreshDirectory( | 133 virtual void RefreshDirectory( |
134 const base::FilePath& directory_path, | 134 const base::FilePath& directory_path, |
135 const FileOperationCallback& callback) OVERRIDE; | 135 const FileOperationCallback& callback) OVERRIDE; |
(...skipping 235 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
371 const GetResourceEntryWithFilePathCallback& callback, | 371 const GetResourceEntryWithFilePathCallback& callback, |
372 FileError error, | 372 FileError error, |
373 const base::FilePath& file_path, | 373 const base::FilePath& file_path, |
374 scoped_ptr<ResourceEntry> entry); | 374 scoped_ptr<ResourceEntry> entry); |
375 | 375 |
376 // Part of GetFileByResourceId(). Called after | 376 // Part of GetFileByResourceId(). Called after |
377 // ResourceMetadata::GetResourceEntryById() is complete. | 377 // ResourceMetadata::GetResourceEntryById() is complete. |
378 // |get_file_callback| must not be null. | 378 // |get_file_callback| must not be null. |
379 // |get_content_callback| may be null. | 379 // |get_content_callback| may be null. |
380 void GetFileByResourceIdAfterGetEntry( | 380 void GetFileByResourceIdAfterGetEntry( |
381 const DriveClientContext& context, | 381 const ClientContext& context, |
382 const GetFileCallback& get_file_callback, | 382 const GetFileCallback& get_file_callback, |
383 const google_apis::GetContentCallback& get_content_callback, | 383 const google_apis::GetContentCallback& get_content_callback, |
384 FileError error, | 384 FileError error, |
385 const base::FilePath& file_path, | 385 const base::FilePath& file_path, |
386 scoped_ptr<ResourceEntry> entry); | 386 scoped_ptr<ResourceEntry> entry); |
387 | 387 |
388 // Part of GetFileContentByPath(). Called after | 388 // Part of GetFileContentByPath(). Called after |
389 // ResourceMetadata::GetResourceEntryByPath() is complete. | 389 // ResourceMetadata::GetResourceEntryByPath() is complete. |
390 // |initialized_callback|, |get_content_callback| and |completion_callback| | 390 // |initialized_callback|, |get_content_callback| and |completion_callback| |
391 // must not be null. | 391 // must not be null. |
(...skipping 83 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
475 // Note: This should remain the last member so it'll be destroyed and | 475 // Note: This should remain the last member so it'll be destroyed and |
476 // invalidate the weak pointers before any other members are destroyed. | 476 // invalidate the weak pointers before any other members are destroyed. |
477 base::WeakPtrFactory<FileSystem> weak_ptr_factory_; | 477 base::WeakPtrFactory<FileSystem> weak_ptr_factory_; |
478 | 478 |
479 DISALLOW_COPY_AND_ASSIGN(FileSystem); | 479 DISALLOW_COPY_AND_ASSIGN(FileSystem); |
480 }; | 480 }; |
481 | 481 |
482 } // namespace drive | 482 } // namespace drive |
483 | 483 |
484 #endif // CHROME_BROWSER_CHROMEOS_DRIVE_FILE_SYSTEM_H_ | 484 #endif // CHROME_BROWSER_CHROMEOS_DRIVE_FILE_SYSTEM_H_ |
OLD | NEW |