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

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

Issue 127663002: Implement DriveAPIService::UninstallApp(). (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Typo fix Created 6 years, 11 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 | Annotate | Revision Log
« no previous file with comments | « google_apis/drive/drive_api_requests.h ('k') | google_apis/drive/drive_api_url_generator.h » ('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 #include "google_apis/drive/drive_api_requests.h" 5 #include "google_apis/drive/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 487 matching lines...) Expand 10 before | Expand all | Expand 10 after
498 url_generator_(url_generator) { 498 url_generator_(url_generator) {
499 DCHECK(!callback.is_null()); 499 DCHECK(!callback.is_null());
500 } 500 }
501 501
502 AppsListRequest::~AppsListRequest() {} 502 AppsListRequest::~AppsListRequest() {}
503 503
504 GURL AppsListRequest::GetURLInternal() const { 504 GURL AppsListRequest::GetURLInternal() const {
505 return url_generator_.GetAppsListUrl(); 505 return url_generator_.GetAppsListUrl();
506 } 506 }
507 507
508 //============================== AppsDeleteRequest ===========================
509
510 AppsDeleteRequest::AppsDeleteRequest(RequestSender* sender,
511 const DriveApiUrlGenerator& url_generator,
512 const EntryActionCallback& callback)
513 : EntryActionRequest(sender, callback),
514 url_generator_(url_generator) {
515 DCHECK(!callback.is_null());
516 }
517
518 AppsDeleteRequest::~AppsDeleteRequest() {}
519
520 net::URLFetcher::RequestType AppsDeleteRequest::GetRequestType() const {
521 return net::URLFetcher::DELETE_REQUEST;
522 }
523
524 GURL AppsDeleteRequest::GetURL() const {
525 return url_generator_.GetAppsDeleteUrl(app_id_);
526 }
527
508 //========================== ChildrenInsertRequest ============================ 528 //========================== ChildrenInsertRequest ============================
509 529
510 ChildrenInsertRequest::ChildrenInsertRequest( 530 ChildrenInsertRequest::ChildrenInsertRequest(
511 RequestSender* sender, 531 RequestSender* sender,
512 const DriveApiUrlGenerator& url_generator, 532 const DriveApiUrlGenerator& url_generator,
513 const EntryActionCallback& callback) 533 const EntryActionCallback& callback)
514 : EntryActionRequest(sender, callback), 534 : EntryActionRequest(sender, callback),
515 url_generator_(url_generator) { 535 url_generator_(url_generator) {
516 DCHECK(!callback.is_null()); 536 DCHECK(!callback.is_null());
517 } 537 }
(...skipping 216 matching lines...) Expand 10 before | Expand all | Expand 10 after
734 progress_callback, 754 progress_callback,
735 url_generator.GenerateDownloadFileUrl(resource_id), 755 url_generator.GenerateDownloadFileUrl(resource_id),
736 output_file_path) { 756 output_file_path) {
737 } 757 }
738 758
739 DownloadFileRequest::~DownloadFileRequest() { 759 DownloadFileRequest::~DownloadFileRequest() {
740 } 760 }
741 761
742 } // namespace drive 762 } // namespace drive
743 } // namespace google_apis 763 } // namespace google_apis
OLDNEW
« no previous file with comments | « google_apis/drive/drive_api_requests.h ('k') | google_apis/drive/drive_api_url_generator.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698