Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(156)

Side by Side Diff: chrome/browser/chromeos/gdata/gdata_file_system.h

Issue 10828219: gdata: Remove use of FindEntryByPathSync() from CopyOnUIThread() (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: fix Created 8 years, 4 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
« no previous file with comments | « no previous file | chrome/browser/chromeos/gdata/gdata_file_system.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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 722 matching lines...) Expand 10 before | Expand all | Expand 10 after
733 const FileResourceIdMap& file_map, 733 const FileResourceIdMap& file_map,
734 GDataEntry* directory_entry); 734 GDataEntry* directory_entry);
735 void GetAvailableSpaceOnUIThread(const GetAvailableSpaceCallback& callback); 735 void GetAvailableSpaceOnUIThread(const GetAvailableSpaceCallback& callback);
736 void AddUploadedFileOnUIThread(UploadMode upload_mode, 736 void AddUploadedFileOnUIThread(UploadMode upload_mode,
737 const FilePath& virtual_dir_path, 737 const FilePath& virtual_dir_path,
738 scoped_ptr<DocumentEntry> entry, 738 scoped_ptr<DocumentEntry> entry,
739 const FilePath& file_content_path, 739 const FilePath& file_content_path,
740 GDataCache::FileOperationType cache_operation, 740 GDataCache::FileOperationType cache_operation,
741 const base::Closure& callback); 741 const base::Closure& callback);
742 742
743 // Part of CopyOnUIThread(). Called after GetEntryInfoPairByPaths() is
744 // complete.
745 void CopyOnUIThreadAfterGetEntryInfoPair(
746 const FilePath& dest_file_path,
747 const FileOperationCallback& callback,
748 scoped_ptr<EntryInfoPairResult> result);
749
743 // Part of RemoveOnUIThread(). Called after GetEntryInfoByPath() is 750 // Part of RemoveOnUIThread(). Called after GetEntryInfoByPath() is
744 // complete. 751 // complete.
745 void RemoveOnUIThreadAfterGetEntryInfo( 752 void RemoveOnUIThreadAfterGetEntryInfo(
746 const FilePath& file_path, 753 const FilePath& file_path,
747 bool is_recursive, 754 bool is_recursive,
748 const FileOperationCallback& callback, 755 const FileOperationCallback& callback,
749 GDataFileError error, 756 GDataFileError error,
750 scoped_ptr<GDataEntryProto> entry_proto); 757 scoped_ptr<GDataEntryProto> entry_proto);
751 758
752 // Part of RequestDirectoryRefreshOnUIThread(). Called after 759 // Part of RequestDirectoryRefreshOnUIThread(). Called after
(...skipping 68 matching lines...) Expand 10 before | Expand all | Expand 10 after
821 // invalidate the weak pointers before any other members are destroyed. 828 // invalidate the weak pointers before any other members are destroyed.
822 base::WeakPtrFactory<GDataFileSystem> ui_weak_ptr_factory_; 829 base::WeakPtrFactory<GDataFileSystem> ui_weak_ptr_factory_;
823 // Unlike other classes, we need this as we need this to redirect a task 830 // Unlike other classes, we need this as we need this to redirect a task
824 // from IO thread to UI thread. 831 // from IO thread to UI thread.
825 base::WeakPtr<GDataFileSystem> ui_weak_ptr_; 832 base::WeakPtr<GDataFileSystem> ui_weak_ptr_;
826 }; 833 };
827 834
828 } // namespace gdata 835 } // namespace gdata
829 836
830 #endif // CHROME_BROWSER_CHROMEOS_GDATA_GDATA_FILE_SYSTEM_H_ 837 #endif // CHROME_BROWSER_CHROMEOS_GDATA_GDATA_FILE_SYSTEM_H_
OLDNEW
« no previous file with comments | « no previous file | chrome/browser/chromeos/gdata/gdata_file_system.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698