| 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 #include "chrome/browser/google_apis/drive_api_requests.h" | 5 #include "chrome/browser/google_apis/drive_api_requests.h" |
| 6 | 6 |
| 7 #include "base/bind.h" | 7 #include "base/bind.h" |
| 8 #include "base/callback.h" | 8 #include "base/callback.h" |
| 9 #include "base/json/json_writer.h" | 9 #include "base/json/json_writer.h" |
| 10 #include "base/location.h" | 10 #include "base/location.h" |
| (...skipping 431 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 442 url_generator_(url_generator) { | 442 url_generator_(url_generator) { |
| 443 DCHECK(!callback.is_null()); | 443 DCHECK(!callback.is_null()); |
| 444 } | 444 } |
| 445 | 445 |
| 446 AppsListRequest::~AppsListRequest() {} | 446 AppsListRequest::~AppsListRequest() {} |
| 447 | 447 |
| 448 GURL AppsListRequest::GetURL() const { | 448 GURL AppsListRequest::GetURL() const { |
| 449 return url_generator_.GetAppsListUrl(); | 449 return url_generator_.GetAppsListUrl(); |
| 450 } | 450 } |
| 451 | 451 |
| 452 //======================= ContinueGetFileListRequest ========================= | |
| 453 | |
| 454 ContinueGetFileListRequest::ContinueGetFileListRequest( | |
| 455 RequestSender* sender, | |
| 456 const GURL& url, | |
| 457 const GetDataCallback& callback) | |
| 458 : GetDataRequest(sender, callback), | |
| 459 url_(url) { | |
| 460 DCHECK(!callback.is_null()); | |
| 461 } | |
| 462 | |
| 463 ContinueGetFileListRequest::~ContinueGetFileListRequest() {} | |
| 464 | |
| 465 GURL ContinueGetFileListRequest::GetURL() const { | |
| 466 return url_; | |
| 467 } | |
| 468 | |
| 469 //========================== ChildrenInsertRequest ============================ | 452 //========================== ChildrenInsertRequest ============================ |
| 470 | 453 |
| 471 ChildrenInsertRequest::ChildrenInsertRequest( | 454 ChildrenInsertRequest::ChildrenInsertRequest( |
| 472 RequestSender* sender, | 455 RequestSender* sender, |
| 473 const DriveApiUrlGenerator& url_generator, | 456 const DriveApiUrlGenerator& url_generator, |
| 474 const EntryActionCallback& callback) | 457 const EntryActionCallback& callback) |
| 475 : EntryActionRequest(sender, callback), | 458 : EntryActionRequest(sender, callback), |
| 476 url_generator_(url_generator) { | 459 url_generator_(url_generator) { |
| 477 DCHECK(!callback.is_null()); | 460 DCHECK(!callback.is_null()); |
| 478 } | 461 } |
| (...skipping 216 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 695 progress_callback, | 678 progress_callback, |
| 696 url_generator.GenerateDownloadFileUrl(resource_id), | 679 url_generator.GenerateDownloadFileUrl(resource_id), |
| 697 output_file_path) { | 680 output_file_path) { |
| 698 } | 681 } |
| 699 | 682 |
| 700 DownloadFileRequest::~DownloadFileRequest() { | 683 DownloadFileRequest::~DownloadFileRequest() { |
| 701 } | 684 } |
| 702 | 685 |
| 703 } // namespace drive | 686 } // namespace drive |
| 704 } // namespace google_apis | 687 } // namespace google_apis |
| OLD | NEW |