| OLD | NEW |
| 1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. |
| 2 // Use of this source code is governed by a BSD-style license that can be | 2 // Use of this source code is governed by a BSD-style license that can be |
| 3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
| 4 | 4 |
| 5 #ifndef CHROME_BROWSER_CHROMEOS_GDATA_GDATA_PARSER_H_ | 5 #ifndef CHROME_BROWSER_CHROMEOS_GDATA_GDATA_PARSER_H_ |
| 6 #define CHROME_BROWSER_CHROMEOS_GDATA_GDATA_PARSER_H_ | 6 #define CHROME_BROWSER_CHROMEOS_GDATA_GDATA_PARSER_H_ |
| 7 #pragma once | 7 #pragma once |
| 8 | 8 |
| 9 #include <string> | 9 #include <string> |
| 10 #include <vector> | 10 #include <vector> |
| (...skipping 658 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 669 } | 669 } |
| 670 | 670 |
| 671 int largest_changestamp() const { | 671 int largest_changestamp() const { |
| 672 return largest_changestamp_; | 672 return largest_changestamp_; |
| 673 } | 673 } |
| 674 | 674 |
| 675 const ScopedVector<InstalledApp>& installed_apps() const { | 675 const ScopedVector<InstalledApp>& installed_apps() const { |
| 676 return installed_apps_; | 676 return installed_apps_; |
| 677 } | 677 } |
| 678 | 678 |
| 679 // Registers the mapping between JSON field names and the members in | 679 protected: |
| 680 // this class. | |
| 681 static void RegisterJSONConverter( | |
| 682 base::JSONValueConverter<AccountMetadataFeed>* converter); | |
| 683 | |
| 684 private: | |
| 685 AccountMetadataFeed(); | 680 AccountMetadataFeed(); |
| 686 | 681 |
| 687 // Parses and initializes data members from content of |value|. | |
| 688 // Return false if parsing fails. | |
| 689 bool Parse(const base::Value& value); | |
| 690 | |
| 691 int64 quota_bytes_total_; | 682 int64 quota_bytes_total_; |
| 692 int64 quota_bytes_used_; | 683 int64 quota_bytes_used_; |
| 693 int largest_changestamp_; | 684 int largest_changestamp_; |
| 694 ScopedVector<InstalledApp> installed_apps_; | 685 ScopedVector<InstalledApp> installed_apps_; |
| 695 | 686 |
| 687 private: |
| 696 DISALLOW_COPY_AND_ASSIGN(AccountMetadataFeed); | 688 DISALLOW_COPY_AND_ASSIGN(AccountMetadataFeed); |
| 697 }; | 689 }; |
| 698 | 690 |
| 699 | |
| 700 } // namespace gdata | 691 } // namespace gdata |
| 701 | 692 |
| 702 #endif // CHROME_BROWSER_CHROMEOS_GDATA_GDATA_PARSER_H_ | 693 #endif // CHROME_BROWSER_CHROMEOS_GDATA_GDATA_PARSER_H_ |
| OLD | NEW |