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

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

Issue 12246002: Implement GetUploadStatusOperation on GData WAPI. (Closed) Base URL: http://git.chromium.org/chromium/src.git@b148632_create_base_operation
Patch Set: Rebase 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
« no previous file with comments | « chrome/browser/google_apis/gdata_wapi_operations_unittest.cc ('k') | no next file » | 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 "chrome/browser/google_apis/gdata_wapi_service.h" 5 #include "chrome/browser/google_apis/gdata_wapi_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 457 matching lines...) Expand 10 before | Expand all | Expand 10 after
468 468
469 void GDataWapiService::GetUploadStatus( 469 void GDataWapiService::GetUploadStatus(
470 UploadMode upload_mode, 470 UploadMode upload_mode,
471 const base::FilePath& drive_file_path, 471 const base::FilePath& drive_file_path,
472 const GURL& upload_url, 472 const GURL& upload_url,
473 int64 content_length, 473 int64 content_length,
474 const UploadRangeCallback& callback) { 474 const UploadRangeCallback& callback) {
475 DCHECK(BrowserThread::CurrentlyOn(BrowserThread::UI)); 475 DCHECK(BrowserThread::CurrentlyOn(BrowserThread::UI));
476 DCHECK(!callback.is_null()); 476 DCHECK(!callback.is_null());
477 477
478 // TODO(hidehiko): Implement this. 478 runner_->StartOperationWithRetry(
479 NOTREACHED(); 479 new GetUploadStatusOperation(operation_registry(),
480 url_request_context_getter_,
481 callback,
482 upload_mode,
483 drive_file_path,
484 upload_url,
485 content_length));
480 } 486 }
481 487
482 void GDataWapiService::AuthorizeApp(const GURL& edit_url, 488 void GDataWapiService::AuthorizeApp(const GURL& edit_url,
483 const std::string& app_id, 489 const std::string& app_id,
484 const AuthorizeAppCallback& callback) { 490 const AuthorizeAppCallback& callback) {
485 DCHECK(BrowserThread::CurrentlyOn(BrowserThread::UI)); 491 DCHECK(BrowserThread::CurrentlyOn(BrowserThread::UI));
486 DCHECK(!callback.is_null()); 492 DCHECK(!callback.is_null());
487 493
488 runner_->StartOperationWithRetry( 494 runner_->StartOperationWithRetry(
489 new AuthorizeAppOperation( 495 new AuthorizeAppOperation(
(...skipping 43 matching lines...) Expand 10 before | Expand all | Expand 10 after
533 } 539 }
534 540
535 void GDataWapiService::OnProgressUpdate( 541 void GDataWapiService::OnProgressUpdate(
536 const OperationProgressStatusList& list) { 542 const OperationProgressStatusList& list) {
537 DCHECK(BrowserThread::CurrentlyOn(BrowserThread::UI)); 543 DCHECK(BrowserThread::CurrentlyOn(BrowserThread::UI));
538 FOR_EACH_OBSERVER( 544 FOR_EACH_OBSERVER(
539 DriveServiceObserver, observers_, OnProgressUpdate(list)); 545 DriveServiceObserver, observers_, OnProgressUpdate(list));
540 } 546 }
541 547
542 } // namespace google_apis 548 } // namespace google_apis
OLDNEW
« no previous file with comments | « chrome/browser/google_apis/gdata_wapi_operations_unittest.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698