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

Unified 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: Rebase. 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 side-by-side diff with in-line comments
Download patch
Index: chrome/browser/chromeos/gdata/gdata_file_system.h
diff --git a/chrome/browser/chromeos/gdata/gdata_file_system.h b/chrome/browser/chromeos/gdata/gdata_file_system.h
index 0ae0f20b5ff82a5ed49060b00b107ccd098dd771..908093ab8a9918cf97972ad4c54587011d5f0e1a 100644
--- a/chrome/browser/chromeos/gdata/gdata_file_system.h
+++ b/chrome/browser/chromeos/gdata/gdata_file_system.h
@@ -855,6 +855,29 @@ class GDataFileSystem : public GDataFileSystemInterface,
GDataFileError error,
scoped_ptr<GDataEntryProto> entry_proto);
+ // Part of GetEntryByResourceId and GetEntryByPath. Checks whether there is a
+ // local dirty cache for the entry, and if there is, replace the
+ // PlatformFileInfo part of the |entry_proto| with the locally modified info.
+ void CheckLocalModificationAndRun(scoped_ptr<GDataEntryProto> entry_proto,
+ const GetEntryInfoCallback& callback);
+ void ReflectLocalModificationAfterGetCacheEntry(
+ scoped_ptr<GDataEntryProto> entry_proto,
+ const GetEntryInfoCallback& callback,
+ bool success,
+ const GDataCacheEntry& cache_entry);
+ void ReflectLocalModificationAfterGetCacheFile(
+ scoped_ptr<GDataEntryProto> entry_proto,
+ const GetEntryInfoCallback& callback,
+ GDataFileError error,
+ const std::string& resource_id,
+ const std::string& md5,
+ const FilePath& local_cache_path);
+ void ReflectLocalModificationAfterGetFileInfo(
+ scoped_ptr<GDataEntryProto> entry_proto,
+ const GetEntryInfoCallback& callback,
+ base::PlatformFileInfo* file_info,
+ bool* get_file_info_result);
+
// All members should be accessed only on UI thread. Do not post tasks to
// other threads with base::Unretained(this).
scoped_ptr<GDataDirectoryService> directory_service_;
« 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