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

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

Issue 12286020: Replace FilePath with base::FilePath. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
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 | Annotate | Revision Log
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 430 matching lines...) Expand 10 before | Expand all | Expand 10 after
441 new drive::DeleteResourceOperation( 441 new drive::DeleteResourceOperation(
442 operation_registry(), 442 operation_registry(),
443 url_request_context_getter_, 443 url_request_context_getter_,
444 url_generator_, 444 url_generator_,
445 parent_resource_id, 445 parent_resource_id,
446 resource_id, 446 resource_id,
447 callback)); 447 callback));
448 } 448 }
449 449
450 void DriveAPIService::InitiateUploadNewFile( 450 void DriveAPIService::InitiateUploadNewFile(
451 const FilePath& drive_file_path, 451 const base::FilePath& drive_file_path,
452 const std::string& content_type, 452 const std::string& content_type,
453 int64 content_length, 453 int64 content_length,
454 const GURL& parent_upload_url, 454 const GURL& parent_upload_url,
455 const std::string& title, 455 const std::string& title,
456 const InitiateUploadCallback& callback) { 456 const InitiateUploadCallback& callback) {
457 DCHECK(BrowserThread::CurrentlyOn(BrowserThread::UI)); 457 DCHECK(BrowserThread::CurrentlyOn(BrowserThread::UI));
458 DCHECK(!callback.is_null()); 458 DCHECK(!callback.is_null());
459 459
460 // TODO(hidehiko): Implement this. 460 // TODO(hidehiko): Implement this.
461 NOTREACHED(); 461 NOTREACHED();
462 } 462 }
463 463
464 void DriveAPIService::InitiateUploadExistingFile( 464 void DriveAPIService::InitiateUploadExistingFile(
465 const FilePath& drive_file_path, 465 const base::FilePath& drive_file_path,
466 const std::string& content_type, 466 const std::string& content_type,
467 int64 content_length, 467 int64 content_length,
468 const GURL& upload_url, 468 const GURL& upload_url,
469 const std::string& etag, 469 const std::string& etag,
470 const InitiateUploadCallback& callback) { 470 const InitiateUploadCallback& callback) {
471 DCHECK(BrowserThread::CurrentlyOn(BrowserThread::UI)); 471 DCHECK(BrowserThread::CurrentlyOn(BrowserThread::UI));
472 DCHECK(!callback.is_null()); 472 DCHECK(!callback.is_null());
473 473
474 // TODO(hidehiko): Implement this. 474 // TODO(hidehiko): Implement this.
475 NOTREACHED(); 475 NOTREACHED();
(...skipping 71 matching lines...) Expand 10 before | Expand all | Expand 10 after
547 } 547 }
548 548
549 void DriveAPIService::OnProgressUpdate( 549 void DriveAPIService::OnProgressUpdate(
550 const OperationProgressStatusList& list) { 550 const OperationProgressStatusList& list) {
551 DCHECK(BrowserThread::CurrentlyOn(BrowserThread::UI)); 551 DCHECK(BrowserThread::CurrentlyOn(BrowserThread::UI));
552 FOR_EACH_OBSERVER( 552 FOR_EACH_OBSERVER(
553 DriveServiceObserver, observers_, OnProgressUpdate(list)); 553 DriveServiceObserver, observers_, OnProgressUpdate(list));
554 } 554 }
555 555
556 } // namespace google_apis 556 } // 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