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

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

Issue 14160002: Add HasChangeListKind and HasFileListKind methods. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Fix unit tests Created 7 years, 8 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 | « no previous file | chrome/browser/google_apis/drive_api_parser.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/google_apis/drive_api_parser.h
diff --git a/chrome/browser/google_apis/drive_api_parser.h b/chrome/browser/google_apis/drive_api_parser.h
index 118a5a3816f431f854e25781db22f841327ee3a1..a20ad3a1f6feb7e8ad55649c80b66b65900fa3b1 100644
--- a/chrome/browser/google_apis/drive_api_parser.h
+++ b/chrome/browser/google_apis/drive_api_parser.h
@@ -631,6 +631,9 @@ class FileList {
static void RegisterJSONConverter(
base::JSONValueConverter<FileList>* converter);
+ // Returns true if the |value| has kind field for FileList.
+ static bool HasFileListKind(const base::Value& value);
+
// Creates file list from parsed JSON.
static scoped_ptr<FileList> CreateFrom(const base::Value& value);
@@ -746,6 +749,9 @@ class ChangeList {
static void RegisterJSONConverter(
base::JSONValueConverter<ChangeList>* converter);
+ // Returns true if the |value| has kind field for ChangeList.
+ static bool HasChangeListKind(const base::Value& value);
+
// Creates change list from parsed JSON.
static scoped_ptr<ChangeList> CreateFrom(const base::Value& value);
« no previous file with comments | « no previous file | chrome/browser/google_apis/drive_api_parser.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698