| OLD | NEW |
| 1 // Copyright 2013 The Chromium Authors. All rights reserved. | 1 // Copyright 2013 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 "components/sync/driver/glue/sync_backend_host_core.h" | 5 #include "components/sync/driver/glue/sync_backend_host_core.h" |
| 6 | 6 |
| 7 #include <utility> | 7 #include <utility> |
| 8 | 8 |
| 9 #include "base/bind.h" | 9 #include "base/bind.h" |
| 10 #include "base/files/file_util.h" | 10 #include "base/files/file_util.h" |
| (...skipping 287 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 298 syncer::ModelType type, | 298 syncer::ModelType type, |
| 299 const syncer::UpdateCounters& counters) { | 299 const syncer::UpdateCounters& counters) { |
| 300 host_.Call( | 300 host_.Call( |
| 301 FROM_HERE, | 301 FROM_HERE, |
| 302 &SyncBackendHostImpl::HandleDirectoryUpdateCountersUpdatedOnFrontendLoop, | 302 &SyncBackendHostImpl::HandleDirectoryUpdateCountersUpdatedOnFrontendLoop, |
| 303 type, counters); | 303 type, counters); |
| 304 } | 304 } |
| 305 | 305 |
| 306 void SyncBackendHostCore::OnStatusCountersUpdated( | 306 void SyncBackendHostCore::OnStatusCountersUpdated( |
| 307 syncer::ModelType type, | 307 syncer::ModelType type, |
| 308 const syncer::StatusCounters& counters) { | 308 std::unique_ptr<syncer::StatusCounters> counters) { |
| 309 host_.Call( | 309 host_.Call( |
| 310 FROM_HERE, | 310 FROM_HERE, |
| 311 &SyncBackendHostImpl::HandleDirectoryStatusCountersUpdatedOnFrontendLoop, | 311 &SyncBackendHostImpl::HandleDirectoryStatusCountersUpdatedOnFrontendLoop, |
| 312 type, counters); | 312 type, base::Passed(&counters)); |
| 313 } | 313 } |
| 314 | 314 |
| 315 void SyncBackendHostCore::OnActionableError( | 315 void SyncBackendHostCore::OnActionableError( |
| 316 const syncer::SyncProtocolError& sync_error) { | 316 const syncer::SyncProtocolError& sync_error) { |
| 317 if (!sync_loop_) | 317 if (!sync_loop_) |
| 318 return; | 318 return; |
| 319 DCHECK(sync_loop_->task_runner()->BelongsToCurrentThread()); | 319 DCHECK(sync_loop_->task_runner()->BelongsToCurrentThread()); |
| 320 host_.Call(FROM_HERE, | 320 host_.Call(FROM_HERE, |
| 321 &SyncBackendHostImpl::HandleActionableErrorEventOnFrontendLoop, | 321 &SyncBackendHostImpl::HandleActionableErrorEventOnFrontendLoop, |
| 322 sync_error); | 322 sync_error); |
| (...skipping 372 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 695 } | 695 } |
| 696 | 696 |
| 697 void SyncBackendHostCore::ClearServerDataDone( | 697 void SyncBackendHostCore::ClearServerDataDone( |
| 698 const base::Closure& frontend_callback) { | 698 const base::Closure& frontend_callback) { |
| 699 DCHECK(sync_loop_->task_runner()->BelongsToCurrentThread()); | 699 DCHECK(sync_loop_->task_runner()->BelongsToCurrentThread()); |
| 700 host_.Call(FROM_HERE, &SyncBackendHostImpl::ClearServerDataDoneOnFrontendLoop, | 700 host_.Call(FROM_HERE, &SyncBackendHostImpl::ClearServerDataDoneOnFrontendLoop, |
| 701 frontend_callback); | 701 frontend_callback); |
| 702 } | 702 } |
| 703 | 703 |
| 704 } // namespace browser_sync | 704 } // namespace browser_sync |
| OLD | NEW |