| 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 255 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 266 const FileOperationCallback& callback, | 266 const FileOperationCallback& callback, |
| 267 FileError result); | 267 FileError result); |
| 268 | 268 |
| 269 // Invoked upon completion of GetFileByPath initiated by OpenFile. If | 269 // Invoked upon completion of GetFileByPath initiated by OpenFile. If |
| 270 // GetFileByPath is successful, calls MarkDirtyInCache to mark the cache | 270 // GetFileByPath is successful, calls MarkDirtyInCache to mark the cache |
| 271 // file as dirty for the file identified by |file_info.resource_id| and | 271 // file as dirty for the file identified by |file_info.resource_id| and |
| 272 // |file_info.md5|. | 272 // |file_info.md5|. |
| 273 void OnGetFileCompleteForOpenFile(const GetFileCompleteForOpenParams& params, | 273 void OnGetFileCompleteForOpenFile(const GetFileCompleteForOpenParams& params, |
| 274 FileError error, | 274 FileError error, |
| 275 const base::FilePath& file_path, | 275 const base::FilePath& file_path, |
| 276 const std::string& mime_type, | 276 scoped_ptr<ResourceEntry> entry); |
| 277 DriveFileType file_type); | |
| 278 | 277 |
| 279 // Invoked upon completion of MarkDirtyInCache initiated by OpenFile. | 278 // Invoked upon completion of MarkDirtyInCache initiated by OpenFile. |
| 280 void OnMarkDirtyInCacheCompleteForOpenFile( | 279 void OnMarkDirtyInCacheCompleteForOpenFile( |
| 281 const GetFileCompleteForOpenParams& params, | 280 const GetFileCompleteForOpenParams& params, |
| 282 FileError error); | 281 FileError error); |
| 283 | 282 |
| 284 // Callback for handling about resource fetch. | 283 // Callback for handling about resource fetch. |
| 285 void OnGetAboutResource( | 284 void OnGetAboutResource( |
| 286 const GetAvailableSpaceCallback& callback, | 285 const GetAvailableSpaceCallback& callback, |
| 287 google_apis::GDataErrorCode status, | 286 google_apis::GDataErrorCode status, |
| (...skipping 217 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 505 // Note: This should remain the last member so it'll be destroyed and | 504 // Note: This should remain the last member so it'll be destroyed and |
| 506 // invalidate the weak pointers before any other members are destroyed. | 505 // invalidate the weak pointers before any other members are destroyed. |
| 507 base::WeakPtrFactory<FileSystem> weak_ptr_factory_; | 506 base::WeakPtrFactory<FileSystem> weak_ptr_factory_; |
| 508 | 507 |
| 509 DISALLOW_COPY_AND_ASSIGN(FileSystem); | 508 DISALLOW_COPY_AND_ASSIGN(FileSystem); |
| 510 }; | 509 }; |
| 511 | 510 |
| 512 } // namespace drive | 511 } // namespace drive |
| 513 | 512 |
| 514 #endif // CHROME_BROWSER_CHROMEOS_DRIVE_FILE_SYSTEM_H_ | 513 #endif // CHROME_BROWSER_CHROMEOS_DRIVE_FILE_SYSTEM_H_ |
| OLD | NEW |