Chromium Code Reviews| 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_GDATA_GDATA_FILE_SYSTEM_H_ | 5 #ifndef CHROME_BROWSER_CHROMEOS_GDATA_GDATA_FILE_SYSTEM_H_ |
| 6 #define CHROME_BROWSER_CHROMEOS_GDATA_GDATA_FILE_SYSTEM_H_ | 6 #define CHROME_BROWSER_CHROMEOS_GDATA_GDATA_FILE_SYSTEM_H_ |
| 7 | 7 |
| 8 #include <map> | 8 #include <map> |
| 9 #include <set> | 9 #include <set> |
| 10 #include <string> | 10 #include <string> |
| (...skipping 718 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 729 const FileResourceIdMap& file_map, | 729 const FileResourceIdMap& file_map, |
| 730 GDataEntry* directory_entry); | 730 GDataEntry* directory_entry); |
| 731 void GetAvailableSpaceOnUIThread(const GetAvailableSpaceCallback& callback); | 731 void GetAvailableSpaceOnUIThread(const GetAvailableSpaceCallback& callback); |
| 732 void AddUploadedFileOnUIThread(UploadMode upload_mode, | 732 void AddUploadedFileOnUIThread(UploadMode upload_mode, |
| 733 const FilePath& virtual_dir_path, | 733 const FilePath& virtual_dir_path, |
| 734 scoped_ptr<DocumentEntry> entry, | 734 scoped_ptr<DocumentEntry> entry, |
| 735 const FilePath& file_content_path, | 735 const FilePath& file_content_path, |
| 736 GDataCache::FileOperationType cache_operation, | 736 GDataCache::FileOperationType cache_operation, |
| 737 const base::Closure& callback); | 737 const base::Closure& callback); |
| 738 | 738 |
| 739 // Part of CopyOnUIThread(). Called after GetEntryInfoPairByPaths() is | |
| 740 // complete. | |
| 741 void CopyOnUIThreadAfterGetEntryInfoPair( | |
| 742 const FilePath& src_file_path, | |
|
achuithb
2012/08/09 00:29:28
Why not get rid of src_file_path and dest_file_pat
satorux1
2012/08/09 08:33:03
Removed src_file_path.
result.first.path == src_f
| |
| 743 const FilePath& dest_file_path, | |
| 744 const FileOperationCallback& callback, | |
| 745 scoped_ptr<EntryInfoPairResult> result); | |
| 746 | |
| 739 // Part of RemoveOnUIThread(). Called after GetEntryInfoByPath() is | 747 // Part of RemoveOnUIThread(). Called after GetEntryInfoByPath() is |
| 740 // complete. | 748 // complete. |
| 741 void RemoveOnUIThreadAfterGetEntryInfo( | 749 void RemoveOnUIThreadAfterGetEntryInfo( |
| 742 const FilePath& file_path, | 750 const FilePath& file_path, |
| 743 bool is_recursive, | 751 bool is_recursive, |
| 744 const FileOperationCallback& callback, | 752 const FileOperationCallback& callback, |
| 745 GDataFileError error, | 753 GDataFileError error, |
| 746 scoped_ptr<GDataEntryProto> entry_proto); | 754 scoped_ptr<GDataEntryProto> entry_proto); |
| 747 | 755 |
| 748 // Part of RequestDirectoryRefreshOnUIThread(). Called after | 756 // Part of RequestDirectoryRefreshOnUIThread(). Called after |
| (...skipping 68 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 817 // invalidate the weak pointers before any other members are destroyed. | 825 // invalidate the weak pointers before any other members are destroyed. |
| 818 base::WeakPtrFactory<GDataFileSystem> ui_weak_ptr_factory_; | 826 base::WeakPtrFactory<GDataFileSystem> ui_weak_ptr_factory_; |
| 819 // Unlike other classes, we need this as we need this to redirect a task | 827 // Unlike other classes, we need this as we need this to redirect a task |
| 820 // from IO thread to UI thread. | 828 // from IO thread to UI thread. |
| 821 base::WeakPtr<GDataFileSystem> ui_weak_ptr_; | 829 base::WeakPtr<GDataFileSystem> ui_weak_ptr_; |
| 822 }; | 830 }; |
| 823 | 831 |
| 824 } // namespace gdata | 832 } // namespace gdata |
| 825 | 833 |
| 826 #endif // CHROME_BROWSER_CHROMEOS_GDATA_GDATA_FILE_SYSTEM_H_ | 834 #endif // CHROME_BROWSER_CHROMEOS_GDATA_GDATA_FILE_SYSTEM_H_ |
| OLD | NEW |