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 "chrome/browser/sync/glue/sync_backend_host_core.h" | 5 #include "chrome/browser/sync/glue/sync_backend_host_core.h" |
6 | 6 |
7 #include "base/command_line.h" | 7 #include "base/command_line.h" |
8 #include "base/file_util.h" | 8 #include "base/file_util.h" |
9 #include "base/metrics/histogram.h" | 9 #include "base/metrics/histogram.h" |
10 #include "chrome/browser/sync/glue/device_info.h" | 10 #include "chrome/browser/sync/glue/device_info.h" |
(...skipping 306 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
317 sync_error); | 317 sync_error); |
318 } | 318 } |
319 | 319 |
320 void SyncBackendHostCore::DoOnInvalidatorStateChange( | 320 void SyncBackendHostCore::DoOnInvalidatorStateChange( |
321 syncer::InvalidatorState state) { | 321 syncer::InvalidatorState state) { |
322 DCHECK_EQ(base::MessageLoop::current(), sync_loop_); | 322 DCHECK_EQ(base::MessageLoop::current(), sync_loop_); |
323 sync_manager_->OnInvalidatorStateChange(state); | 323 sync_manager_->OnInvalidatorStateChange(state); |
324 } | 324 } |
325 | 325 |
326 void SyncBackendHostCore::DoOnIncomingInvalidation( | 326 void SyncBackendHostCore::DoOnIncomingInvalidation( |
327 syncer::ObjectIdInvalidationMap invalidation_map) { | 327 const syncer::ObjectIdInvalidationMap& invalidation_map) { |
328 DCHECK_EQ(base::MessageLoop::current(), sync_loop_); | 328 DCHECK_EQ(base::MessageLoop::current(), sync_loop_); |
329 sync_manager_->OnIncomingInvalidation(invalidation_map); | 329 sync_manager_->OnIncomingInvalidation(invalidation_map); |
330 } | 330 } |
331 | 331 |
332 void SyncBackendHostCore::DoInitialize( | 332 void SyncBackendHostCore::DoInitialize( |
333 scoped_ptr<DoInitializeOptions> options) { | 333 scoped_ptr<DoInitializeOptions> options) { |
334 DCHECK(!sync_loop_); | 334 DCHECK(!sync_loop_); |
335 sync_loop_ = options->sync_loop; | 335 sync_loop_ = options->sync_loop; |
336 DCHECK(sync_loop_); | 336 DCHECK(sync_loop_); |
337 | 337 |
(...skipping 275 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
613 this, &SyncBackendHostCore::SaveChanges); | 613 this, &SyncBackendHostCore::SaveChanges); |
614 } | 614 } |
615 | 615 |
616 void SyncBackendHostCore::SaveChanges() { | 616 void SyncBackendHostCore::SaveChanges() { |
617 DCHECK_EQ(base::MessageLoop::current(), sync_loop_); | 617 DCHECK_EQ(base::MessageLoop::current(), sync_loop_); |
618 sync_manager_->SaveChanges(); | 618 sync_manager_->SaveChanges(); |
619 } | 619 } |
620 | 620 |
621 } // namespace browser_sync | 621 } // namespace browser_sync |
622 | 622 |
OLD | NEW |