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 514 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 525 | 525 | 
| 526 // Optional parameter | 526 // Optional parameter | 
| 527 int max_results() const { return max_results_; } | 527 int max_results() const { return max_results_; } | 
| 528 void set_max_results(int max_results) { max_results_ = max_results; } | 528 void set_max_results(int max_results) { max_results_ = max_results; } | 
| 529 | 529 | 
| 530 const std::string& page_token() const { return page_token_; } | 530 const std::string& page_token() const { return page_token_; } | 
| 531 void set_page_token(const std::string& page_token) { | 531 void set_page_token(const std::string& page_token) { | 
| 532 page_token_ = page_token; | 532 page_token_ = page_token; | 
| 533 } | 533 } | 
| 534 | 534 | 
| 535 FilesListCorpora corpora() const { return corpora_; } | |
| 536 void set_corpora(const FilesListCorpora& corpora) { corpora_ = corpora; } | |
| 
 
hashimoto
2017/06/02 09:44:46
const FilesListCorpora& -> FilesListCorpora.
enum
 
yamaguchi
2017/06/02 12:04:01
Done.
 
 | |
| 537 | |
| 538 const std::string& team_drive_id() const { return team_drive_id_; } | |
| 539 void set_team_drive_id(const std::string& team_drive_id) { | |
| 540 team_drive_id_ = team_drive_id; | |
| 541 } | |
| 542 | |
| 535 const std::string& q() const { return q_; } | 543 const std::string& q() const { return q_; } | 
| 536 void set_q(const std::string& q) { q_ = q; } | 544 void set_q(const std::string& q) { q_ = q; } | 
| 537 | 545 | 
| 538 protected: | 546 protected: | 
| 539 // Overridden from DriveApiDataRequest. | 547 // Overridden from DriveApiDataRequest. | 
| 540 GURL GetURLInternal() const override; | 548 GURL GetURLInternal() const override; | 
| 541 | 549 | 
| 542 private: | 550 private: | 
| 543 const DriveApiUrlGenerator url_generator_; | 551 const DriveApiUrlGenerator url_generator_; | 
| 544 int max_results_; | 552 int max_results_; | 
| 545 std::string page_token_; | 553 std::string page_token_; | 
| 554 FilesListCorpora corpora_; | |
| 555 std::string team_drive_id_; | |
| 546 std::string q_; | 556 std::string q_; | 
| 547 | 557 | 
| 548 DISALLOW_COPY_AND_ASSIGN(FilesListRequest); | 558 DISALLOW_COPY_AND_ASSIGN(FilesListRequest); | 
| 549 }; | 559 }; | 
| 550 | 560 | 
| 551 //========================= FilesListNextPageRequest ========================== | 561 //========================= FilesListNextPageRequest ========================== | 
| 552 | 562 | 
| 553 // There are two ways to obtain next pages of "Files: list" result (if paged). | 563 // There are two ways to obtain next pages of "Files: list" result (if paged). | 
| 554 // 1) Set pageToken and all params used for the initial request. | 564 // 1) Set pageToken and all params used for the initial request. | 
| 555 // 2) Use URL in the nextLink field in the previous response. | 565 // 2) Use URL in the nextLink field in the previous response. | 
| (...skipping 750 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 1306 // invalidate its weak pointers before any other members are destroyed. | 1316 // invalidate its weak pointers before any other members are destroyed. | 
| 1307 base::WeakPtrFactory<BatchUploadRequest> weak_ptr_factory_; | 1317 base::WeakPtrFactory<BatchUploadRequest> weak_ptr_factory_; | 
| 1308 | 1318 | 
| 1309 DISALLOW_COPY_AND_ASSIGN(BatchUploadRequest); | 1319 DISALLOW_COPY_AND_ASSIGN(BatchUploadRequest); | 
| 1310 }; | 1320 }; | 
| 1311 | 1321 | 
| 1312 } // namespace drive | 1322 } // namespace drive | 
| 1313 } // namespace google_apis | 1323 } // namespace google_apis | 
| 1314 | 1324 | 
| 1315 #endif // GOOGLE_APIS_DRIVE_DRIVE_API_REQUESTS_H_ | 1325 #endif // GOOGLE_APIS_DRIVE_DRIVE_API_REQUESTS_H_ | 
| OLD | NEW |