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

Side by Side Diff: google_apis/drive/drive_api_requests.h

Issue 2854653004: Add parameter to issue URLs for querying a ChangeList of a Team Drive. (Closed)
Patch Set: rebase Created 3 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 unified diff | Download patch
« no previous file with comments | « no previous file | google_apis/drive/drive_api_requests.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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
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;
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
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_
OLDNEW
« no previous file with comments | « no previous file | google_apis/drive/drive_api_requests.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698