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

Unified Diff: google_apis/drive/drive_api_parser.h

Issue 1125123008: Files.app: Use quotaBytesUsedAggregate to know the actual available space. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 5 years, 7 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/test/data/drive/about.json ('k') | google_apis/drive/drive_api_parser.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: google_apis/drive/drive_api_parser.h
diff --git a/google_apis/drive/drive_api_parser.h b/google_apis/drive/drive_api_parser.h
index 482d749f7fe299afd160ce57e647967f43d0e45a..acbb93f94042558403cdb6441b0c5956376c6761 100644
--- a/google_apis/drive/drive_api_parser.h
+++ b/google_apis/drive/drive_api_parser.h
@@ -48,7 +48,9 @@ class AboutResource {
// Returns total number of quota bytes.
int64 quota_bytes_total() const { return quota_bytes_total_; }
// Returns the number of quota bytes used.
- int64 quota_bytes_used() const { return quota_bytes_used_; }
+ int64 quota_bytes_used_aggregate() const {
+ return quota_bytes_used_aggregate_;
+ }
// Returns root folder ID.
const std::string& root_folder_id() const { return root_folder_id_; }
@@ -58,8 +60,8 @@ class AboutResource {
void set_quota_bytes_total(int64 quota_bytes_total) {
quota_bytes_total_ = quota_bytes_total;
}
- void set_quota_bytes_used(int64 quota_bytes_used) {
- quota_bytes_used_ = quota_bytes_used;
+ void set_quota_bytes_used_aggregate(int64 quota_bytes_used_aggregate) {
+ quota_bytes_used_aggregate_ = quota_bytes_used_aggregate;
}
void set_root_folder_id(const std::string& root_folder_id) {
root_folder_id_ = root_folder_id;
@@ -75,7 +77,7 @@ class AboutResource {
int64 largest_change_id_;
int64 quota_bytes_total_;
- int64 quota_bytes_used_;
+ int64 quota_bytes_used_aggregate_;
std::string root_folder_id_;
// This class is copyable on purpose.
« no previous file with comments | « chrome/test/data/drive/about.json ('k') | google_apis/drive/drive_api_parser.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698