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 const FilesListScope scope() const { return scope_; } | |
|
hashimoto
2017/05/26 09:09:19
This should be a const reference.
const FilesListS
yamaguchi
2017/05/29 08:38:21
Done.
| |
| 536 void set_scope(const FilesListScope& scope) { scope_ = scope; } | |
| 537 | |
| 535 const std::string& q() const { return q_; } | 538 const std::string& q() const { return q_; } |
| 536 void set_q(const std::string& q) { q_ = q; } | 539 void set_q(const std::string& q) { q_ = q; } |
| 537 | 540 |
| 538 protected: | 541 protected: |
| 539 // Overridden from DriveApiDataRequest. | 542 // Overridden from DriveApiDataRequest. |
| 540 GURL GetURLInternal() const override; | 543 GURL GetURLInternal() const override; |
| 541 | 544 |
| 542 private: | 545 private: |
| 543 const DriveApiUrlGenerator url_generator_; | 546 const DriveApiUrlGenerator url_generator_; |
| 544 int max_results_; | 547 int max_results_; |
| 545 std::string page_token_; | 548 std::string page_token_; |
| 549 FilesListScope scope_; | |
| 546 std::string q_; | 550 std::string q_; |
| 547 | 551 |
| 548 DISALLOW_COPY_AND_ASSIGN(FilesListRequest); | 552 DISALLOW_COPY_AND_ASSIGN(FilesListRequest); |
| 549 }; | 553 }; |
| 550 | 554 |
| 551 //========================= FilesListNextPageRequest ========================== | 555 //========================= FilesListNextPageRequest ========================== |
| 552 | 556 |
| 553 // There are two ways to obtain next pages of "Files: list" result (if paged). | 557 // 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. | 558 // 1) Set pageToken and all params used for the initial request. |
| 555 // 2) Use URL in the nextLink field in the previous response. | 559 // 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. | 1310 // invalidate its weak pointers before any other members are destroyed. |
| 1307 base::WeakPtrFactory<BatchUploadRequest> weak_ptr_factory_; | 1311 base::WeakPtrFactory<BatchUploadRequest> weak_ptr_factory_; |
| 1308 | 1312 |
| 1309 DISALLOW_COPY_AND_ASSIGN(BatchUploadRequest); | 1313 DISALLOW_COPY_AND_ASSIGN(BatchUploadRequest); |
| 1310 }; | 1314 }; |
| 1311 | 1315 |
| 1312 } // namespace drive | 1316 } // namespace drive |
| 1313 } // namespace google_apis | 1317 } // namespace google_apis |
| 1314 | 1318 |
| 1315 #endif // GOOGLE_APIS_DRIVE_DRIVE_API_REQUESTS_H_ | 1319 #endif // GOOGLE_APIS_DRIVE_DRIVE_API_REQUESTS_H_ |
| OLD | NEW |