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

Unified Diff: chrome/browser/google_apis/gdata_wapi_parser.h

Issue 11421125: Implement polling part of DriveFileSyncService (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: fix for optional changestamp field Created 8 years, 1 month 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/google_apis/gdata_wapi_parser.h
diff --git a/chrome/browser/google_apis/gdata_wapi_parser.h b/chrome/browser/google_apis/gdata_wapi_parser.h
index 684b219b70f6230eb552a7b39ddcc86e2655d765..6d9ce223f3bda34274f2c793d4df5062cf1d30c2 100644
--- a/chrome/browser/google_apis/gdata_wapi_parser.h
+++ b/chrome/browser/google_apis/gdata_wapi_parser.h
@@ -386,6 +386,8 @@ class DocumentEntry : public FeedEntry {
// their value nodes.
static bool HasFieldPresent(const base::Value* value, bool* result);
+ static bool OptionalChangestamp(const base::StringPiece& value, int64* result);
kinuko 2012/11/29 11:40:46 nit: over 80 chars
tzik 2012/12/03 10:00:08 Done.
+
// Returns true if |file| has one of the hosted document extensions.
static bool HasHostedDocumentExtension(const FilePath& file);
@@ -434,6 +436,9 @@ class DocumentEntry : public FeedEntry {
// True if the file or directory is deleted (applicable to change feeds only).
bool deleted() const { return deleted_ || removed_; }
+ // Changestamp (exists only for change query results).
+ int64 changestamp() const { return changestamp_; }
kinuko 2012/11/29 11:40:46 Yes, I wanted to have this!
+
// Text version of document entry kind. Returns an empty string for
// unknown entry kind.
std::string GetEntryKindText() const;
@@ -517,6 +522,7 @@ class DocumentEntry : public FeedEntry {
int64 file_size_;
bool deleted_;
bool removed_;
+ int64 changestamp_;
DISALLOW_COPY_AND_ASSIGN(DocumentEntry);
};

Powered by Google App Engine
This is Rietveld 408576698