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_impl.h" | 5 #include "chrome/browser/sync/glue/sync_backend_host_impl.h" |
6 | 6 |
7 #include "base/command_line.h" | 7 #include "base/command_line.h" |
8 #include "base/logging.h" | 8 #include "base/logging.h" |
9 #include "chrome/browser/browser_process.h" | 9 #include "chrome/browser/browser_process.h" |
10 #include "chrome/browser/chrome_notification_types.h" | 10 #include "chrome/browser/chrome_notification_types.h" |
(...skipping 502 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
513 NOTREACHED(); | 513 NOTREACHED(); |
514 } | 514 } |
515 } | 515 } |
516 | 516 |
517 SyncedDeviceTracker* SyncBackendHostImpl::GetSyncedDeviceTracker() const { | 517 SyncedDeviceTracker* SyncBackendHostImpl::GetSyncedDeviceTracker() const { |
518 if (!initialized()) | 518 if (!initialized()) |
519 return NULL; | 519 return NULL; |
520 return core_->synced_device_tracker(); | 520 return core_->synced_device_tracker(); |
521 } | 521 } |
522 | 522 |
523 void SyncBackendHostImpl::FlushDirectory() const { | |
Nicolas Zea
2014/09/22 17:27:46
DCHECK initialized()?
maxbogue
2014/09/30 00:26:32
Done.
| |
524 registrar_->sync_thread()->message_loop()->PostTask(FROM_HERE, | |
525 base::Bind(&SyncBackendHostCore::DoFlushDirectory, core_)); | |
526 } | |
527 | |
523 void SyncBackendHostImpl::RequestBufferedProtocolEventsAndEnableForwarding() { | 528 void SyncBackendHostImpl::RequestBufferedProtocolEventsAndEnableForwarding() { |
524 registrar_->sync_thread()->message_loop()->PostTask( | 529 registrar_->sync_thread()->message_loop()->PostTask( |
525 FROM_HERE, | 530 FROM_HERE, |
526 base::Bind( | 531 base::Bind( |
527 &SyncBackendHostCore::SendBufferedProtocolEventsAndEnableForwarding, | 532 &SyncBackendHostCore::SendBufferedProtocolEventsAndEnableForwarding, |
528 core_)); | 533 core_)); |
529 } | 534 } |
530 | 535 |
531 void SyncBackendHostImpl::DisableProtocolEventForwarding() { | 536 void SyncBackendHostImpl::DisableProtocolEventForwarding() { |
532 registrar_->sync_thread()->message_loop()->PostTask( | 537 registrar_->sync_thread()->message_loop()->PostTask( |
(...skipping 351 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
884 | 889 |
885 base::MessageLoop* SyncBackendHostImpl::GetSyncLoopForTesting() { | 890 base::MessageLoop* SyncBackendHostImpl::GetSyncLoopForTesting() { |
886 return registrar_->sync_thread()->message_loop(); | 891 return registrar_->sync_thread()->message_loop(); |
887 } | 892 } |
888 | 893 |
889 } // namespace browser_sync | 894 } // namespace browser_sync |
890 | 895 |
891 #undef SDVLOG | 896 #undef SDVLOG |
892 | 897 |
893 #undef SLOG | 898 #undef SLOG |
OLD | NEW |