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

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

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
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 #include "google_apis/drive/drive_api_requests.h" 5 #include "google_apis/drive/drive_api_requests.h"
6 6
7 #include <stddef.h> 7 #include <stddef.h>
8 8
9 #include "base/bind.h" 9 #include "base/bind.h"
10 #include "base/callback.h" 10 #include "base/callback.h"
(...skipping 654 matching lines...) Expand 10 before | Expand all | Expand 10 after
665 url_generator_(url_generator), 665 url_generator_(url_generator),
666 include_deleted_(true), 666 include_deleted_(true),
667 max_results_(100), 667 max_results_(100),
668 start_change_id_(0) { 668 start_change_id_(0) {
669 DCHECK(!callback.is_null()); 669 DCHECK(!callback.is_null());
670 } 670 }
671 671
672 ChangesListRequest::~ChangesListRequest() {} 672 ChangesListRequest::~ChangesListRequest() {}
673 673
674 GURL ChangesListRequest::GetURLInternal() const { 674 GURL ChangesListRequest::GetURLInternal() const {
675 return url_generator_.GetChangesListUrl( 675 return url_generator_.GetChangesListUrl(include_deleted_, max_results_,
676 include_deleted_, max_results_, page_token_, start_change_id_); 676 page_token_, start_change_id_,
677 team_drive_id_);
677 } 678 }
678 679
679 //======================== ChangesListNextPageRequest ========================= 680 //======================== ChangesListNextPageRequest =========================
680 681
681 ChangesListNextPageRequest::ChangesListNextPageRequest( 682 ChangesListNextPageRequest::ChangesListNextPageRequest(
682 RequestSender* sender, 683 RequestSender* sender,
683 const ChangeListCallback& callback) 684 const ChangeListCallback& callback)
684 : DriveApiDataRequest<ChangeList>(sender, callback) { 685 : DriveApiDataRequest<ChangeList>(sender, callback) {
685 DCHECK(!callback.is_null()); 686 DCHECK(!callback.is_null());
686 } 687 }
(...skipping 757 matching lines...) Expand 10 before | Expand all | Expand 10 after
1444 } else if (last_progress_value_ < child->data_offset + child->data_size && 1445 } else if (last_progress_value_ < child->data_offset + child->data_size &&
1445 child->data_offset + child->data_size < current) { 1446 child->data_offset + child->data_size < current) {
1446 child->request->NotifyUploadProgress(source, child->data_size, 1447 child->request->NotifyUploadProgress(source, child->data_size,
1447 child->data_size); 1448 child->data_size);
1448 } 1449 }
1449 } 1450 }
1450 last_progress_value_ = current; 1451 last_progress_value_ = current;
1451 } 1452 }
1452 } // namespace drive 1453 } // namespace drive
1453 } // namespace google_apis 1454 } // namespace google_apis
OLDNEW
« no previous file with comments | « google_apis/drive/drive_api_requests.h ('k') | google_apis/drive/drive_api_requests_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698