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/sync_file_system/drive_backend/drive_uploader_on_worker.cc

Issue 506793002: Remove implicit conversions from scoped_refptr to T* in chrome/browser/sync_file_system/ (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 6 years, 3 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 2014 The Chromium Authors. All rights reserved. 1 // Copyright 2014 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/sync_file_system/drive_backend/drive_uploader_on_worker .h" 5 #include "chrome/browser/sync_file_system/drive_backend/drive_uploader_on_worker .h"
6 6
7 #include <string> 7 #include <string>
8 8
9 #include "base/bind.h" 9 #include "base/bind.h"
10 #include "base/location.h" 10 #include "base/location.h"
(...skipping 30 matching lines...) Expand all
41 ui_task_runner_->PostTask( 41 ui_task_runner_->PostTask(
42 FROM_HERE, 42 FROM_HERE,
43 base::Bind(&DriveUploaderWrapper::UploadNewFile, 43 base::Bind(&DriveUploaderWrapper::UploadNewFile,
44 wrapper_, 44 wrapper_,
45 parent_resource_id, 45 parent_resource_id,
46 local_file_path, 46 local_file_path,
47 title, 47 title,
48 content_type, 48 content_type,
49 options, 49 options,
50 RelayCallbackToTaskRunner( 50 RelayCallbackToTaskRunner(
51 worker_task_runner_, 51 worker_task_runner_.get(), FROM_HERE, callback)));
52 FROM_HERE,
53 callback)));
54 52
55 return google_apis::CancelCallback(); 53 return google_apis::CancelCallback();
56 } 54 }
57 55
58 google_apis::CancelCallback DriveUploaderOnWorker::UploadExistingFile( 56 google_apis::CancelCallback DriveUploaderOnWorker::UploadExistingFile(
59 const std::string& resource_id, 57 const std::string& resource_id,
60 const base::FilePath& local_file_path, 58 const base::FilePath& local_file_path,
61 const std::string& content_type, 59 const std::string& content_type,
62 const UploadExistingFileOptions& options, 60 const UploadExistingFileOptions& options,
63 const drive::UploadCompletionCallback& callback, 61 const drive::UploadCompletionCallback& callback,
64 const google_apis::ProgressCallback& progress_callback) { 62 const google_apis::ProgressCallback& progress_callback) {
65 DCHECK(sequece_checker_.CalledOnValidSequencedThread()); 63 DCHECK(sequece_checker_.CalledOnValidSequencedThread());
66 64
67 ui_task_runner_->PostTask( 65 ui_task_runner_->PostTask(
68 FROM_HERE, 66 FROM_HERE,
69 base::Bind(&DriveUploaderWrapper::UploadExistingFile, 67 base::Bind(&DriveUploaderWrapper::UploadExistingFile,
70 wrapper_, 68 wrapper_,
71 resource_id, 69 resource_id,
72 local_file_path, 70 local_file_path,
73 content_type, 71 content_type,
74 options, 72 options,
75 RelayCallbackToTaskRunner( 73 RelayCallbackToTaskRunner(
76 worker_task_runner_, 74 worker_task_runner_.get(), FROM_HERE, callback)));
77 FROM_HERE,
78 callback)));
79 75
80 return google_apis::CancelCallback(); 76 return google_apis::CancelCallback();
81 } 77 }
82 78
83 google_apis::CancelCallback DriveUploaderOnWorker::ResumeUploadFile( 79 google_apis::CancelCallback DriveUploaderOnWorker::ResumeUploadFile(
84 const GURL& upload_location, 80 const GURL& upload_location,
85 const base::FilePath& local_file_path, 81 const base::FilePath& local_file_path,
86 const std::string& content_type, 82 const std::string& content_type,
87 const drive::UploadCompletionCallback& callback, 83 const drive::UploadCompletionCallback& callback,
88 const google_apis::ProgressCallback& progress_callback) { 84 const google_apis::ProgressCallback& progress_callback) {
89 NOTREACHED(); 85 NOTREACHED();
90 return google_apis::CancelCallback(); 86 return google_apis::CancelCallback();
91 } 87 }
92 88
93 } // namespace drive_backend 89 } // namespace drive_backend
94 } // namespace sync_file_system 90 } // namespace sync_file_system
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698