OLD | NEW |
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2012 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/core_impl/sync_manager_impl.h" | 5 #include "components/sync/core_impl/sync_manager_impl.h" |
6 | 6 |
7 #include <stddef.h> | 7 #include <stddef.h> |
8 #include <stdint.h> | 8 #include <stdint.h> |
9 | 9 |
10 #include <string> | 10 #include <string> |
(...skipping 958 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
969 | 969 |
970 bool SyncManagerImpl::HasUnsyncedItems() { | 970 bool SyncManagerImpl::HasUnsyncedItems() { |
971 ReadTransaction trans(FROM_HERE, GetUserShare()); | 971 ReadTransaction trans(FROM_HERE, GetUserShare()); |
972 return (trans.GetWrappedTrans()->directory()->unsynced_entity_count() != 0); | 972 return (trans.GetWrappedTrans()->directory()->unsynced_entity_count() != 0); |
973 } | 973 } |
974 | 974 |
975 SyncEncryptionHandler* SyncManagerImpl::GetEncryptionHandler() { | 975 SyncEncryptionHandler* SyncManagerImpl::GetEncryptionHandler() { |
976 return sync_encryption_handler_.get(); | 976 return sync_encryption_handler_.get(); |
977 } | 977 } |
978 | 978 |
979 ScopedVector<syncer::ProtocolEvent> | 979 std::vector<std::unique_ptr<ProtocolEvent>> |
980 SyncManagerImpl::GetBufferedProtocolEvents() { | 980 SyncManagerImpl::GetBufferedProtocolEvents() { |
981 return protocol_event_buffer_.GetBufferedProtocolEvents(); | 981 return protocol_event_buffer_.GetBufferedProtocolEvents(); |
982 } | 982 } |
983 | 983 |
984 void SyncManagerImpl::RegisterDirectoryTypeDebugInfoObserver( | 984 void SyncManagerImpl::RegisterDirectoryTypeDebugInfoObserver( |
985 syncer::TypeDebugInfoObserver* observer) { | 985 syncer::TypeDebugInfoObserver* observer) { |
986 model_type_registry_->RegisterDirectoryTypeDebugInfoObserver(observer); | 986 model_type_registry_->RegisterDirectoryTypeDebugInfoObserver(observer); |
987 } | 987 } |
988 | 988 |
989 void SyncManagerImpl::UnregisterDirectoryTypeDebugInfoObserver( | 989 void SyncManagerImpl::UnregisterDirectoryTypeDebugInfoObserver( |
(...skipping 18 matching lines...) Expand all Loading... |
1008 } | 1008 } |
1009 | 1009 |
1010 void SyncManagerImpl::OnCookieJarChanged(bool account_mismatch, | 1010 void SyncManagerImpl::OnCookieJarChanged(bool account_mismatch, |
1011 bool empty_jar) { | 1011 bool empty_jar) { |
1012 DCHECK(thread_checker_.CalledOnValidThread()); | 1012 DCHECK(thread_checker_.CalledOnValidThread()); |
1013 cycle_context_->set_cookie_jar_mismatch(account_mismatch); | 1013 cycle_context_->set_cookie_jar_mismatch(account_mismatch); |
1014 cycle_context_->set_cookie_jar_empty(empty_jar); | 1014 cycle_context_->set_cookie_jar_empty(empty_jar); |
1015 } | 1015 } |
1016 | 1016 |
1017 } // namespace syncer | 1017 } // namespace syncer |
OLD | NEW |