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 #ifndef COMPONENTS_SYNC_DRIVER_GLUE_SYNC_BACKEND_HOST_IMPL_H_ | 5 #ifndef COMPONENTS_SYNC_DRIVER_GLUE_SYNC_BACKEND_HOST_IMPL_H_ |
6 #define COMPONENTS_SYNC_DRIVER_GLUE_SYNC_BACKEND_HOST_IMPL_H_ | 6 #define COMPONENTS_SYNC_DRIVER_GLUE_SYNC_BACKEND_HOST_IMPL_H_ |
7 | 7 |
8 #include <stdint.h> | 8 #include <stdint.h> |
9 | 9 |
10 #include <map> | 10 #include <map> |
(...skipping 71 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
82 Status GetDetailedStatus() override; | 82 Status GetDetailedStatus() override; |
83 bool HasUnsyncedItems() const override; | 83 bool HasUnsyncedItems() const override; |
84 bool IsCryptographerReady(const BaseTransaction* trans) const override; | 84 bool IsCryptographerReady(const BaseTransaction* trans) const override; |
85 void GetModelSafeRoutingInfo(ModelSafeRoutingInfo* out) const override; | 85 void GetModelSafeRoutingInfo(ModelSafeRoutingInfo* out) const override; |
86 void FlushDirectory() const override; | 86 void FlushDirectory() const override; |
87 void RequestBufferedProtocolEventsAndEnableForwarding() override; | 87 void RequestBufferedProtocolEventsAndEnableForwarding() override; |
88 void DisableProtocolEventForwarding() override; | 88 void DisableProtocolEventForwarding() override; |
89 void EnableDirectoryTypeDebugInfoForwarding() override; | 89 void EnableDirectoryTypeDebugInfoForwarding() override; |
90 void DisableDirectoryTypeDebugInfoForwarding() override; | 90 void DisableDirectoryTypeDebugInfoForwarding() override; |
91 void RefreshTypesForTest(ModelTypeSet types) override; | 91 void RefreshTypesForTest(ModelTypeSet types) override; |
92 void ClearServerData( | 92 void ClearServerData(const base::Closure& callback) override; |
93 const SyncManager::ClearServerDataCallback& callback) override; | |
94 void OnCookieJarChanged(bool account_mismatch, | 93 void OnCookieJarChanged(bool account_mismatch, |
95 bool empty_jar, | 94 bool empty_jar, |
96 const base::Closure& callback) override; | 95 const base::Closure& callback) override; |
97 | 96 |
98 // InvalidationHandler implementation. | 97 // InvalidationHandler implementation. |
99 void OnInvalidatorStateChange(InvalidatorState state) override; | 98 void OnInvalidatorStateChange(InvalidatorState state) override; |
100 void OnIncomingInvalidation( | 99 void OnIncomingInvalidation( |
101 const ObjectIdInvalidationMap& invalidation_map) override; | 100 const ObjectIdInvalidationMap& invalidation_map) override; |
102 std::string GetOwnerName() const override; | 101 std::string GetOwnerName() const override; |
103 | 102 |
(...skipping 82 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
186 const SyncProtocolError& sync_error); | 185 const SyncProtocolError& sync_error); |
187 | 186 |
188 // Handle a migration request. | 187 // Handle a migration request. |
189 void HandleMigrationRequestedOnFrontendLoop(const ModelTypeSet types); | 188 void HandleMigrationRequestedOnFrontendLoop(const ModelTypeSet types); |
190 | 189 |
191 // Dispatched to from OnConnectionStatusChange to handle updating | 190 // Dispatched to from OnConnectionStatusChange to handle updating |
192 // frontend UI components. | 191 // frontend UI components. |
193 void HandleConnectionStatusChangeOnFrontendLoop(ConnectionStatus status); | 192 void HandleConnectionStatusChangeOnFrontendLoop(ConnectionStatus status); |
194 | 193 |
195 void ClearServerDataDoneOnFrontendLoop( | 194 void ClearServerDataDoneOnFrontendLoop( |
196 const SyncManager::ClearServerDataCallback& frontend_callback); | 195 const base::Closure& frontend_callback); |
197 | 196 |
198 void OnCookieJarChangedDoneOnFrontendLoop(const base::Closure& callback); | 197 void OnCookieJarChangedDoneOnFrontendLoop(const base::Closure& callback); |
199 | 198 |
200 SyncClient* const sync_client_; | 199 SyncClient* const sync_client_; |
201 | 200 |
202 // The task runner where all the sync engine operations happen. | 201 // The task runner where all the sync engine operations happen. |
203 scoped_refptr<base::SingleThreadTaskRunner> sync_task_runner_; | 202 scoped_refptr<base::SingleThreadTaskRunner> sync_task_runner_; |
204 | 203 |
205 // Name used for debugging (set from profile_->GetDebugName()). | 204 // Name used for debugging (set from profile_->GetDebugName()). |
206 const std::string name_; | 205 const std::string name_; |
(...skipping 25 matching lines...) Expand all Loading... |
232 base::ThreadChecker thread_checker_; | 231 base::ThreadChecker thread_checker_; |
233 | 232 |
234 base::WeakPtrFactory<SyncBackendHostImpl> weak_ptr_factory_; | 233 base::WeakPtrFactory<SyncBackendHostImpl> weak_ptr_factory_; |
235 | 234 |
236 DISALLOW_COPY_AND_ASSIGN(SyncBackendHostImpl); | 235 DISALLOW_COPY_AND_ASSIGN(SyncBackendHostImpl); |
237 }; | 236 }; |
238 | 237 |
239 } // namespace syncer | 238 } // namespace syncer |
240 | 239 |
241 #endif // COMPONENTS_SYNC_DRIVER_GLUE_SYNC_BACKEND_HOST_IMPL_H_ | 240 #endif // COMPONENTS_SYNC_DRIVER_GLUE_SYNC_BACKEND_HOST_IMPL_H_ |
OLD | NEW |