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

Unified Diff: chrome/browser/chromeos/gdata/gdata_files.h

Issue 10823226: Get AboutResource as account metadata for Drive V2. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: rebase. 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « chrome/browser/chromeos/gdata/gdata_file_system.cc ('k') | chrome/browser/chromeos/gdata/gdata_files.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/chromeos/gdata/gdata_files.h
diff --git a/chrome/browser/chromeos/gdata/gdata_files.h b/chrome/browser/chromeos/gdata/gdata_files.h
index 794615b8038c9820e7827e2cda557820c6d6864c..781b00b166ee80ee659f1b903a2a292f6e758956 100644
--- a/chrome/browser/chromeos/gdata/gdata_files.h
+++ b/chrome/browser/chromeos/gdata/gdata_files.h
@@ -68,7 +68,7 @@ const char kGDataRootDirectoryResourceId[] = "folder:root";
// This should be incremented when incompatibility change is made in
// gdata.proto.
-const int32 kProtoVersion = 1;
+const int32 kProtoVersion = 2;
// Used for file operations like removing files.
typedef base::Callback<void(GDataFileError error)>
@@ -406,13 +406,16 @@ class GDataDirectoryService {
// Largest change timestamp that was the source of content for the current
// state of the root directory.
- const int largest_changestamp() const { return largest_changestamp_; }
- void set_largest_changestamp(int value) { largest_changestamp_ = value; }
+ const int64 largest_changestamp() const { return largest_changestamp_; }
+ void set_largest_changestamp(int64 value) { largest_changestamp_ = value; }
// The root directory content origin.
const ContentOrigin origin() const { return origin_; }
void set_origin(ContentOrigin value) { origin_ = value; }
+ // Sets root directory resource id and initialize the root entry.
+ void InitializeRootEntry(const std::string& root_id);
+
// Move |entry| to |directory_path| asynchronously. Removes entry from
// previous parent. Must be called on UI thread. |callback| is called on the
// UI thread.
@@ -527,7 +530,7 @@ class GDataDirectoryService {
base::Time last_serialized_;
size_t serialized_size_;
- int largest_changestamp_; // Stored in the serialized proto.
+ int64 largest_changestamp_; // Stored in the serialized proto.
ContentOrigin origin_;
// This should remain the last member so it'll be destroyed first and
« no previous file with comments | « chrome/browser/chromeos/gdata/gdata_file_system.cc ('k') | chrome/browser/chromeos/gdata/gdata_files.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698