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

Unified Diff: chrome/browser/chromeos/drive/drive_resource_metadata.h

Issue 11876002: Make largest_changestamp setter/getter asynchronous. (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: rebase + comment Created 7 years, 11 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/drive/drive_resource_metadata.h
===================================================================
--- chrome/browser/chromeos/drive/drive_resource_metadata.h (revision 177026)
+++ chrome/browser/chromeos/drive/drive_resource_metadata.h (working copy)
@@ -90,6 +90,8 @@
typedef base::Callback<void(const std::set<FilePath>&)>
GetChildDirectoriesCallback;
+typedef base::Callback<void(int64)> GetChangestampCallback;
+
// This is a part of EntryInfoPairResult.
struct EntryInfoResult {
EntryInfoResult();
@@ -132,15 +134,16 @@
size_t serialized_size() const { return serialized_size_; }
void set_serialized_size(size_t size) { serialized_size_ = size; }
- // Largest change timestamp that was the source of content for the current
- // state of the root directory.
- int64 largest_changestamp() const { return largest_changestamp_; }
- void set_largest_changestamp(int64 value) { largest_changestamp_ = value; }
-
// True if the file system feed is loaded from the cache or from the server.
bool loaded() const { return loaded_; }
void set_loaded(bool loaded) { loaded_ = loaded; }
+ // Largest change timestamp that was the source of content for the current
+ // state of the root directory.
+ void GetLargestChangestamp(const GetChangestampCallback& callback);
+ void SetLargestChangestamp(int64 value,
+ const FileOperationCallback& callback);
+
// Add |entry| to directory with path |directory_path| and invoke the
// callback asynchronously.
// |callback| must not be null.
« no previous file with comments | « chrome/browser/chromeos/drive/drive_file_system_interface.h ('k') | chrome/browser/chromeos/drive/drive_resource_metadata.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698