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

Side by Side Diff: chrome/browser/google_apis/drive_api_service.cc

Issue 12218011: WIP: Implement 5xx Error handling. (Closed) Base URL: http://git.chromium.org/chromium/src.git@master
Patch Set: Created 7 years, 10 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 "chrome/browser/google_apis/drive_api_service.h" 5 #include "chrome/browser/google_apis/drive_api_service.h"
6 6
7 #include <string> 7 #include <string>
8 #include <vector> 8 #include <vector>
9 9
10 #include "base/bind.h" 10 #include "base/bind.h"
(...skipping 438 matching lines...) Expand 10 before | Expand all | Expand 10 after
449 void DriveAPIService::ResumeUpload( 449 void DriveAPIService::ResumeUpload(
450 const ResumeUploadParams& params, 450 const ResumeUploadParams& params,
451 const ResumeUploadCallback& callback) { 451 const ResumeUploadCallback& callback) {
452 DCHECK(BrowserThread::CurrentlyOn(BrowserThread::UI)); 452 DCHECK(BrowserThread::CurrentlyOn(BrowserThread::UI));
453 DCHECK(!callback.is_null()); 453 DCHECK(!callback.is_null());
454 454
455 // TODO(kochi): Implement this. 455 // TODO(kochi): Implement this.
456 NOTREACHED(); 456 NOTREACHED();
457 } 457 }
458 458
459 void DriveAPIService::GetUploadState(
460 const UploadMode upload_mode,
461 const FilePath& drive_file_path,
462 const GURL& upload_url,
463 int64 content_length,
464 const ResumeUploadCallback& callback) {
465 DCHECK(BrowserThread::CurrentlyOn(BrowserThread::UI));
466 DCHECK(!callback.is_null());
467
468 // TODO(hidehiko): Implement this.
469 NOTREACHED();
470 }
471
459 void DriveAPIService::AuthorizeApp( 472 void DriveAPIService::AuthorizeApp(
460 const GURL& edit_url, 473 const GURL& edit_url,
461 const std::string& app_ids, 474 const std::string& app_ids,
462 const AuthorizeAppCallback& callback) { 475 const AuthorizeAppCallback& callback) {
463 DCHECK(BrowserThread::CurrentlyOn(BrowserThread::UI)); 476 DCHECK(BrowserThread::CurrentlyOn(BrowserThread::UI));
464 DCHECK(!callback.is_null()); 477 DCHECK(!callback.is_null());
465 478
466 // TODO(kochi): Implement this. 479 // TODO(kochi): Implement this.
467 NOTREACHED(); 480 NOTREACHED();
468 } 481 }
(...skipping 41 matching lines...) Expand 10 before | Expand all | Expand 10 after
510 } 523 }
511 524
512 void DriveAPIService::OnAuthenticationFailed(GDataErrorCode error) { 525 void DriveAPIService::OnAuthenticationFailed(GDataErrorCode error) {
513 DCHECK(BrowserThread::CurrentlyOn(BrowserThread::UI)); 526 DCHECK(BrowserThread::CurrentlyOn(BrowserThread::UI));
514 FOR_EACH_OBSERVER( 527 FOR_EACH_OBSERVER(
515 DriveServiceObserver, observers_, 528 DriveServiceObserver, observers_,
516 OnAuthenticationFailed(error)); 529 OnAuthenticationFailed(error));
517 } 530 }
518 531
519 } // namespace google_apis 532 } // namespace google_apis
OLDNEW
« no previous file with comments | « chrome/browser/google_apis/drive_api_service.h ('k') | chrome/browser/google_apis/drive_service_interface.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698