| OLD | NEW |
| 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_service_on_worker.
h" | 5 #include "chrome/browser/sync_file_system/drive_backend/drive_service_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/logging.h" | 10 #include "base/logging.h" |
| (...skipping 162 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 173 base::BindOnce(&DriveServiceWrapper::GetFileResource, wrapper_, | 173 base::BindOnce(&DriveServiceWrapper::GetFileResource, wrapper_, |
| 174 resource_id, | 174 resource_id, |
| 175 RelayCallbackToTaskRunner(worker_task_runner_.get(), | 175 RelayCallbackToTaskRunner(worker_task_runner_.get(), |
| 176 FROM_HERE, callback))); | 176 FROM_HERE, callback))); |
| 177 | 177 |
| 178 return google_apis::CancelCallback(); | 178 return google_apis::CancelCallback(); |
| 179 } | 179 } |
| 180 | 180 |
| 181 google_apis::CancelCallback DriveServiceOnWorker::GetFileListInDirectory( | 181 google_apis::CancelCallback DriveServiceOnWorker::GetFileListInDirectory( |
| 182 const std::string& directory_resource_id, | 182 const std::string& directory_resource_id, |
| 183 const std::string& team_drive_id, |
| 183 const google_apis::FileListCallback& callback) { | 184 const google_apis::FileListCallback& callback) { |
| 184 DCHECK(sequence_checker_.CalledOnValidSequence()); | 185 DCHECK(sequence_checker_.CalledOnValidSequence()); |
| 185 | 186 |
| 186 ui_task_runner_->PostTask( | 187 ui_task_runner_->PostTask( |
| 187 FROM_HERE, | 188 FROM_HERE, |
| 188 base::BindOnce(&DriveServiceWrapper::GetFileListInDirectory, wrapper_, | 189 base::BindOnce(&DriveServiceWrapper::GetFileListInDirectory, wrapper_, |
| 189 directory_resource_id, | 190 directory_resource_id, team_drive_id, |
| 190 RelayCallbackToTaskRunner(worker_task_runner_.get(), | 191 RelayCallbackToTaskRunner(worker_task_runner_.get(), |
| 191 FROM_HERE, callback))); | 192 FROM_HERE, callback))); |
| 192 | 193 |
| 193 return google_apis::CancelCallback(); | 194 return google_apis::CancelCallback(); |
| 194 } | 195 } |
| 195 | 196 |
| 196 google_apis::CancelCallback DriveServiceOnWorker::RemoveResourceFromDirectory( | 197 google_apis::CancelCallback DriveServiceOnWorker::RemoveResourceFromDirectory( |
| 197 const std::string& parent_resource_id, | 198 const std::string& parent_resource_id, |
| 198 const std::string& resource_id, | 199 const std::string& resource_id, |
| 199 const google_apis::EntryActionCallback& callback) { | 200 const google_apis::EntryActionCallback& callback) { |
| (...skipping 228 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 428 const std::string& resource_id, | 429 const std::string& resource_id, |
| 429 const std::string& email, | 430 const std::string& email, |
| 430 google_apis::drive::PermissionRole role, | 431 google_apis::drive::PermissionRole role, |
| 431 const google_apis::EntryActionCallback& callback) { | 432 const google_apis::EntryActionCallback& callback) { |
| 432 NOTREACHED(); | 433 NOTREACHED(); |
| 433 return google_apis::CancelCallback(); | 434 return google_apis::CancelCallback(); |
| 434 } | 435 } |
| 435 | 436 |
| 436 } // namespace drive_backend | 437 } // namespace drive_backend |
| 437 } // namespace sync_file_system | 438 } // namespace sync_file_system |
| OLD | NEW |