Chromium Code Reviews| 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_REQUESTS_H_ | 5 #ifndef GOOGLE_APIS_DRIVE_DRIVE_API_REQUESTS_H_ |
| 6 #define GOOGLE_APIS_DRIVE_DRIVE_API_REQUESTS_H_ | 6 #define GOOGLE_APIS_DRIVE_DRIVE_API_REQUESTS_H_ |
| 7 | 7 |
| 8 #include <stdint.h> | 8 #include <stdint.h> |
| 9 | 9 |
| 10 #include <memory> | 10 #include <memory> |
| (...skipping 672 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 683 const std::string& page_token() const { return page_token_; } | 683 const std::string& page_token() const { return page_token_; } |
| 684 void set_page_token(const std::string& page_token) { | 684 void set_page_token(const std::string& page_token) { |
| 685 page_token_ = page_token; | 685 page_token_ = page_token; |
| 686 } | 686 } |
| 687 | 687 |
| 688 int64_t start_change_id() const { return start_change_id_; } | 688 int64_t start_change_id() const { return start_change_id_; } |
| 689 void set_start_change_id(int64_t start_change_id) { | 689 void set_start_change_id(int64_t start_change_id) { |
| 690 start_change_id_ = start_change_id; | 690 start_change_id_ = start_change_id; |
| 691 } | 691 } |
| 692 | 692 |
| 693 const std::string& team_drive_id() const { return team_drive_id_; } | |
| 694 void set_team_drive_id(const std::string& team_drive_id) { | |
| 695 team_drive_id_ = team_drive_id_; | |
|
hashimoto
2017/05/02 08:15:24
The right hand side should be team_drive_id.
yamaguchi
2017/05/02 08:57:16
Done.
Also added unit test to cover this in drive_
| |
| 696 } | |
| 697 | |
| 693 protected: | 698 protected: |
| 694 // Overridden from DriveApiDataRequest. | 699 // Overridden from DriveApiDataRequest. |
| 695 GURL GetURLInternal() const override; | 700 GURL GetURLInternal() const override; |
| 696 | 701 |
| 697 private: | 702 private: |
| 698 const DriveApiUrlGenerator url_generator_; | 703 const DriveApiUrlGenerator url_generator_; |
| 699 bool include_deleted_; | 704 bool include_deleted_; |
| 700 int max_results_; | 705 int max_results_; |
| 701 std::string page_token_; | 706 std::string page_token_; |
| 702 int64_t start_change_id_; | 707 int64_t start_change_id_; |
| 708 std::string team_drive_id_; | |
| 703 | 709 |
| 704 DISALLOW_COPY_AND_ASSIGN(ChangesListRequest); | 710 DISALLOW_COPY_AND_ASSIGN(ChangesListRequest); |
| 705 }; | 711 }; |
| 706 | 712 |
| 707 //======================== ChangesListNextPageRequest ========================= | 713 //======================== ChangesListNextPageRequest ========================= |
| 708 | 714 |
| 709 // There are two ways to obtain next pages of "Changes: list" result (if paged). | 715 // There are two ways to obtain next pages of "Changes: list" result (if paged). |
| 710 // 1) Set pageToken and all params used for the initial request. | 716 // 1) Set pageToken and all params used for the initial request. |
| 711 // 2) Use URL in the nextLink field in the previous response. | 717 // 2) Use URL in the nextLink field in the previous response. |
| 712 // This class implements 2)'s request. | 718 // This class implements 2)'s request. |
| (...skipping 587 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 1300 // invalidate its weak pointers before any other members are destroyed. | 1306 // invalidate its weak pointers before any other members are destroyed. |
| 1301 base::WeakPtrFactory<BatchUploadRequest> weak_ptr_factory_; | 1307 base::WeakPtrFactory<BatchUploadRequest> weak_ptr_factory_; |
| 1302 | 1308 |
| 1303 DISALLOW_COPY_AND_ASSIGN(BatchUploadRequest); | 1309 DISALLOW_COPY_AND_ASSIGN(BatchUploadRequest); |
| 1304 }; | 1310 }; |
| 1305 | 1311 |
| 1306 } // namespace drive | 1312 } // namespace drive |
| 1307 } // namespace google_apis | 1313 } // namespace google_apis |
| 1308 | 1314 |
| 1309 #endif // GOOGLE_APIS_DRIVE_DRIVE_API_REQUESTS_H_ | 1315 #endif // GOOGLE_APIS_DRIVE_DRIVE_API_REQUESTS_H_ |
| OLD | NEW |