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

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: 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 2ee2ec838075f51c4878afc93ec4370acf71e671..0568695226955006850823e6bae1a74b0707b0fc 100644
--- a/chrome/browser/chromeos/gdata/gdata_file_system.h
+++ b/chrome/browser/chromeos/gdata/gdata_file_system.h
@@ -846,6 +846,30 @@ 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 ReflectLocalModificationToGDataEntryProto(
+ const GetEntryInfoCallback& callback,
+ scoped_ptr<GDataEntryProto> entry_proto);
+ void OnGetCacheEntryForReflectLocalModification(
+ const GetEntryInfoCallback& callback,
+ scoped_ptr<GDataEntryProto> entry_proto,
+ bool success,
+ const GDataCacheEntry& cache_entry);
+ void OnGetCacheFileForReflectLocalModification(
+ const GetEntryInfoCallback& callback,
+ scoped_ptr<GDataEntryProto> entry_proto,
+ GDataFileError error,
+ const std::string& resource_id,
+ const std::string& md5,
+ const FilePath& local_cache_path);
+ void OnGetFileInfoForReflectLocalModification(
+ const GetEntryInfoCallback& callback,
+ scoped_ptr<GDataEntryProto> entry_proto,
+ 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