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

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

Issue 10693109: Use Drive v2 API: enable behind --enable-drive-api flag (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_parser.h
diff --git a/chrome/browser/chromeos/gdata/gdata_parser.h b/chrome/browser/chromeos/gdata/gdata_parser.h
index 90d4599c5b38e5da61c064146a09a1cd45e44862..4a599784a42b32ca960a929f1bce4fc1ee92cee1 100644
--- a/chrome/browser/chromeos/gdata/gdata_parser.h
+++ b/chrome/browser/chromeos/gdata/gdata_parser.h
@@ -658,7 +658,8 @@ class AccountMetadataFeed {
// this method does some post-process for some fields. See
// FillRemainingFields comment and implementation in DocumentEntry
// class for the details.
- static scoped_ptr<AccountMetadataFeed> CreateFrom(const base::Value& value);
+ static scoped_ptr<AccountMetadataFeed> CreateFrom(const base::Value& value,
+ bool use_drive_api);
int64 quota_bytes_total() const {
return quota_bytes_total_;
@@ -676,27 +677,18 @@ class AccountMetadataFeed {
return installed_apps_;
}
- // Registers the mapping between JSON field names and the members in
- // this class.
- static void RegisterJSONConverter(
- base::JSONValueConverter<AccountMetadataFeed>* converter);
-
- private:
+ protected:
AccountMetadataFeed();
- // Parses and initializes data members from content of |value|.
- // Return false if parsing fails.
- bool Parse(const base::Value& value);
-
int64 quota_bytes_total_;
int64 quota_bytes_used_;
int largest_changestamp_;
ScopedVector<InstalledApp> installed_apps_;
+ private:
DISALLOW_COPY_AND_ASSIGN(AccountMetadataFeed);
};
-
} // namespace gdata
#endif // CHROME_BROWSER_CHROMEOS_GDATA_GDATA_PARSER_H_

Powered by Google App Engine
This is Rietveld 408576698