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 GOOGLE_APIS_DRIVE_DRIVE_API_PARSER_H_ | 5 #ifndef GOOGLE_APIS_DRIVE_DRIVE_API_PARSER_H_ |
6 #define GOOGLE_APIS_DRIVE_DRIVE_API_PARSER_H_ | 6 #define GOOGLE_APIS_DRIVE_DRIVE_API_PARSER_H_ |
7 | 7 |
8 #include <stdint.h> | 8 #include <stdint.h> |
9 | 9 |
10 #include <memory> | 10 #include <memory> |
(...skipping 410 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
421 | 421 |
422 // Parses and initializes data members from content of |value|. | 422 // Parses and initializes data members from content of |value|. |
423 // Return false if parsing fails. | 423 // Return false if parsing fails. |
424 bool Parse(const base::Value& value); | 424 bool Parse(const base::Value& value); |
425 | 425 |
426 std::string id_; | 426 std::string id_; |
427 std::string name_; | 427 std::string name_; |
428 TeamDriveCapabilities capabilities_; | 428 TeamDriveCapabilities capabilities_; |
429 }; | 429 }; |
430 | 430 |
431 | |
432 // ParentReference represents a directory. | 431 // ParentReference represents a directory. |
433 // https://developers.google.com/drive/v2/reference/parents | 432 // https://developers.google.com/drive/v2/reference/parents |
434 class ParentReference { | 433 class ParentReference { |
435 public: | 434 public: |
436 ParentReference(); | 435 ParentReference(); |
437 ~ParentReference(); | 436 ~ParentReference(); |
438 | 437 |
439 // Registers the mapping between JSON field names and the members in this | 438 // Registers the mapping between JSON field names and the members in this |
440 // class. | 439 // class. |
441 static void RegisterJSONConverter( | 440 static void RegisterJSONConverter( |
(...skipping 417 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
859 GURL next_link_; | 858 GURL next_link_; |
860 int64_t largest_change_id_; | 859 int64_t largest_change_id_; |
861 std::vector<std::unique_ptr<ChangeResource>> items_; | 860 std::vector<std::unique_ptr<ChangeResource>> items_; |
862 | 861 |
863 DISALLOW_COPY_AND_ASSIGN(ChangeList); | 862 DISALLOW_COPY_AND_ASSIGN(ChangeList); |
864 }; | 863 }; |
865 | 864 |
866 } // namespace google_apis | 865 } // namespace google_apis |
867 | 866 |
868 #endif // GOOGLE_APIS_DRIVE_DRIVE_API_PARSER_H_ | 867 #endif // GOOGLE_APIS_DRIVE_DRIVE_API_PARSER_H_ |
OLD | NEW |