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

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

Issue 10826006: gdata: File info of dirty files should be get from the cached file. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 8 years, 5 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
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 828 matching lines...) Expand 10 before | Expand all | Expand 10 after
839 GDataFileError error, 839 GDataFileError error,
840 scoped_ptr<GDataEntryProto> entry_proto); 840 scoped_ptr<GDataEntryProto> entry_proto);
841 841
842 // Part of RequestDirectoryRefreshOnUIThread(). Called after 842 // Part of RequestDirectoryRefreshOnUIThread(). Called after
843 // GetEntryInfoByPath() is complete. 843 // GetEntryInfoByPath() is complete.
844 void RequestDirectoryRefreshOnUIThreadAfterGetEntryInfo( 844 void RequestDirectoryRefreshOnUIThreadAfterGetEntryInfo(
845 const FilePath& file_path, 845 const FilePath& file_path,
846 GDataFileError error, 846 GDataFileError error,
847 scoped_ptr<GDataEntryProto> entry_proto); 847 scoped_ptr<GDataEntryProto> entry_proto);
848 848
849 // Part of GetEntryByResourceId and GetEntryByPath. Checks whether there is a
850 // local dirty cache for the entry, and if there is, replace the
851 // PlatformFileInfo part of the entry_proto with the locally modified info.
852 void ReflectLocalModificationToGDataEntryProto(
853 const GetEntryInfoCallback& callback,
854 scoped_ptr<GDataEntryProto> entry_proto);
855 void OnGetCacheEntryForReflectLocalModification(
856 const GetEntryInfoCallback& callback,
857 scoped_ptr<GDataEntryProto> entry_proto,
858 bool success,
859 const GDataCacheEntry& cache_entry);
860 void OnGetCacheFileForReflectLocalModification(
861 const GetEntryInfoCallback& callback,
862 scoped_ptr<GDataEntryProto> entry_proto,
863 GDataFileError error,
864 const std::string& resource_id,
865 const std::string& md5,
866 const FilePath& local_cache_path);
867 void OnGetFileInfoForReflectLocalModification(
868 const GetEntryInfoCallback& callback,
869 scoped_ptr<GDataEntryProto> entry_proto,
870 base::PlatformFileInfo* file_info,
871 bool* get_file_info_result);
872
849 // All members should be accessed only on UI thread. Do not post tasks to 873 // All members should be accessed only on UI thread. Do not post tasks to
850 // other threads with base::Unretained(this). 874 // other threads with base::Unretained(this).
851 scoped_ptr<GDataDirectoryService> directory_service_; 875 scoped_ptr<GDataDirectoryService> directory_service_;
852 876
853 // The profile hosts the GDataFileSystem via GDataSystemService. 877 // The profile hosts the GDataFileSystem via GDataSystemService.
854 Profile* profile_; 878 Profile* profile_;
855 879
856 // The cache owned by GDataSystemService. 880 // The cache owned by GDataSystemService.
857 GDataCache* cache_; 881 GDataCache* cache_;
858 882
(...skipping 22 matching lines...) Expand all
881 base::WeakPtr<GDataFileSystem> ui_weak_ptr_; 905 base::WeakPtr<GDataFileSystem> ui_weak_ptr_;
882 906
883 ObserverList<Observer> observers_; 907 ObserverList<Observer> observers_;
884 908
885 scoped_refptr<base::SequencedTaskRunner> blocking_task_runner_; 909 scoped_refptr<base::SequencedTaskRunner> blocking_task_runner_;
886 }; 910 };
887 911
888 } // namespace gdata 912 } // namespace gdata
889 913
890 #endif // CHROME_BROWSER_CHROMEOS_GDATA_GDATA_FILE_SYSTEM_H_ 914 #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') | chrome/browser/chromeos/gdata/gdata_file_system.cc » ('J')

Powered by Google App Engine
This is Rietveld 408576698