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

Side by Side Diff: chrome/browser/sync_file_system/drive_backend/drive_uploader_wrapper.cc

Issue 2189113002: Rename CalledOnValidSequencedThread() to CalledOnValidSequence(). (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 years, 4 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_wrapper.h " 5 #include "chrome/browser/sync_file_system/drive_backend/drive_uploader_wrapper.h "
6 6
7 #include "base/memory/weak_ptr.h" 7 #include "base/memory/weak_ptr.h"
8 #include "components/drive/drive_uploader.h" 8 #include "components/drive/drive_uploader.h"
9 9
10 namespace sync_file_system { 10 namespace sync_file_system {
11 namespace drive_backend { 11 namespace drive_backend {
12 12
13 DriveUploaderWrapper::DriveUploaderWrapper( 13 DriveUploaderWrapper::DriveUploaderWrapper(
14 drive::DriveUploaderInterface* drive_uploader) 14 drive::DriveUploaderInterface* drive_uploader)
15 : drive_uploader_(drive_uploader) {} 15 : drive_uploader_(drive_uploader) {}
16 16
17 void DriveUploaderWrapper::UploadExistingFile( 17 void DriveUploaderWrapper::UploadExistingFile(
18 const std::string& resource_id, 18 const std::string& resource_id,
19 const base::FilePath& local_file_path, 19 const base::FilePath& local_file_path,
20 const std::string& content_type, 20 const std::string& content_type,
21 const drive::UploadExistingFileOptions& options, 21 const drive::UploadExistingFileOptions& options,
22 const drive::UploadCompletionCallback& callback) { 22 const drive::UploadCompletionCallback& callback) {
23 DCHECK(sequence_checker_.CalledOnValidSequencedThread()); 23 DCHECK(sequence_checker_.CalledOnValidSequence());
24 drive_uploader_->UploadExistingFile( 24 drive_uploader_->UploadExistingFile(
25 resource_id, 25 resource_id,
26 local_file_path, 26 local_file_path,
27 content_type, 27 content_type,
28 options, 28 options,
29 callback, 29 callback,
30 google_apis::ProgressCallback()); 30 google_apis::ProgressCallback());
31 } 31 }
32 32
33 void DriveUploaderWrapper::UploadNewFile( 33 void DriveUploaderWrapper::UploadNewFile(
34 const std::string& parent_resource_id, 34 const std::string& parent_resource_id,
35 const base::FilePath& local_file_path, 35 const base::FilePath& local_file_path,
36 const std::string& title, 36 const std::string& title,
37 const std::string& content_type, 37 const std::string& content_type,
38 const drive::UploadNewFileOptions& options, 38 const drive::UploadNewFileOptions& options,
39 const drive::UploadCompletionCallback& callback) { 39 const drive::UploadCompletionCallback& callback) {
40 DCHECK(sequence_checker_.CalledOnValidSequencedThread()); 40 DCHECK(sequence_checker_.CalledOnValidSequence());
41 drive_uploader_->UploadNewFile( 41 drive_uploader_->UploadNewFile(
42 parent_resource_id, 42 parent_resource_id,
43 local_file_path, 43 local_file_path,
44 title, 44 title,
45 content_type, 45 content_type,
46 options, 46 options,
47 callback, 47 callback,
48 google_apis::ProgressCallback()); 48 google_apis::ProgressCallback());
49 } 49 }
50 50
51 } // namespace drive_backend 51 } // namespace drive_backend
52 } // namespace sync_file_system 52 } // namespace sync_file_system
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698