| 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 125 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 136 void GetModelSafeRoutingInfo( | 136 void GetModelSafeRoutingInfo( |
| 137 syncer::ModelSafeRoutingInfo* out) const override; | 137 syncer::ModelSafeRoutingInfo* out) const override; |
| 138 void FlushDirectory() const override; | 138 void FlushDirectory() const override; |
| 139 void RequestBufferedProtocolEventsAndEnableForwarding() override; | 139 void RequestBufferedProtocolEventsAndEnableForwarding() override; |
| 140 void DisableProtocolEventForwarding() override; | 140 void DisableProtocolEventForwarding() override; |
| 141 void EnableDirectoryTypeDebugInfoForwarding() override; | 141 void EnableDirectoryTypeDebugInfoForwarding() override; |
| 142 void DisableDirectoryTypeDebugInfoForwarding() override; | 142 void DisableDirectoryTypeDebugInfoForwarding() override; |
| 143 void GetAllNodesForTypes( | 143 void GetAllNodesForTypes( |
| 144 syncer::ModelTypeSet types, | 144 syncer::ModelTypeSet types, |
| 145 base::Callback<void(const std::vector<syncer::ModelType>&, | 145 base::Callback<void(const std::vector<syncer::ModelType>&, |
| 146 ScopedVector<base::ListValue>)> type) override; | 146 std::vector<std::unique_ptr<base::ListValue>>)> type) |
| 147 override; |
| 147 base::MessageLoop* GetSyncLoopForTesting() override; | 148 base::MessageLoop* GetSyncLoopForTesting() override; |
| 148 void RefreshTypesForTest(syncer::ModelTypeSet types) override; | 149 void RefreshTypesForTest(syncer::ModelTypeSet types) override; |
| 149 void ClearServerData( | 150 void ClearServerData( |
| 150 const syncer::SyncManager::ClearServerDataCallback& callback) override; | 151 const syncer::SyncManager::ClearServerDataCallback& callback) override; |
| 151 void OnCookieJarChanged(bool account_mismatch, bool empty_jar) override; | 152 void OnCookieJarChanged(bool account_mismatch, bool empty_jar) override; |
| 152 | 153 |
| 153 // InvalidationHandler implementation. | 154 // InvalidationHandler implementation. |
| 154 void OnInvalidatorStateChange(syncer::InvalidatorState state) override; | 155 void OnInvalidatorStateChange(syncer::InvalidatorState state) override; |
| 155 void OnIncomingInvalidation( | 156 void OnIncomingInvalidation( |
| 156 const syncer::ObjectIdInvalidationMap& invalidation_map) override; | 157 const syncer::ObjectIdInvalidationMap& invalidation_map) override; |
| (...skipping 36 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 193 virtual void HandleInitializationSuccessOnFrontendLoop( | 194 virtual void HandleInitializationSuccessOnFrontendLoop( |
| 194 const syncer::WeakHandle<syncer::JsBackend> js_backend, | 195 const syncer::WeakHandle<syncer::JsBackend> js_backend, |
| 195 const syncer::WeakHandle<syncer::DataTypeDebugInfoListener> | 196 const syncer::WeakHandle<syncer::DataTypeDebugInfoListener> |
| 196 debug_info_listener, | 197 debug_info_listener, |
| 197 std::unique_ptr<syncer_v2::ModelTypeConnector> model_type_connector, | 198 std::unique_ptr<syncer_v2::ModelTypeConnector> model_type_connector, |
| 198 const std::string& cache_guid); | 199 const std::string& cache_guid); |
| 199 | 200 |
| 200 // Forwards a ProtocolEvent to the frontend. Will not be called unless a | 201 // Forwards a ProtocolEvent to the frontend. Will not be called unless a |
| 201 // call to SetForwardProtocolEvents() explicitly requested that we start | 202 // call to SetForwardProtocolEvents() explicitly requested that we start |
| 202 // forwarding these events. | 203 // forwarding these events. |
| 203 void HandleProtocolEventOnFrontendLoop(syncer::ProtocolEvent* event); | 204 void HandleProtocolEventOnFrontendLoop( |
| 205 std::unique_ptr<syncer::ProtocolEvent> event); |
| 204 | 206 |
| 205 // Forwards a directory commit counter update to the frontend loop. Will not | 207 // Forwards a directory commit counter update to the frontend loop. Will not |
| 206 // be called unless a call to EnableDirectoryTypeDebugInfoForwarding() | 208 // be called unless a call to EnableDirectoryTypeDebugInfoForwarding() |
| 207 // explicitly requested that we start forwarding these events. | 209 // explicitly requested that we start forwarding these events. |
| 208 void HandleDirectoryCommitCountersUpdatedOnFrontendLoop( | 210 void HandleDirectoryCommitCountersUpdatedOnFrontendLoop( |
| 209 syncer::ModelType type, | 211 syncer::ModelType type, |
| 210 const syncer::CommitCounters& counters); | 212 const syncer::CommitCounters& counters); |
| 211 | 213 |
| 212 // Forwards a directory update counter update to the frontend loop. Will not | 214 // Forwards a directory update counter update to the frontend loop. Will not |
| 213 // be called unless a call to EnableDirectoryTypeDebugInfoForwarding() | 215 // be called unless a call to EnableDirectoryTypeDebugInfoForwarding() |
| (...skipping 158 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 372 bool invalidation_handler_registered_; | 374 bool invalidation_handler_registered_; |
| 373 | 375 |
| 374 base::WeakPtrFactory<SyncBackendHostImpl> weak_ptr_factory_; | 376 base::WeakPtrFactory<SyncBackendHostImpl> weak_ptr_factory_; |
| 375 | 377 |
| 376 DISALLOW_COPY_AND_ASSIGN(SyncBackendHostImpl); | 378 DISALLOW_COPY_AND_ASSIGN(SyncBackendHostImpl); |
| 377 }; | 379 }; |
| 378 | 380 |
| 379 } // namespace browser_sync | 381 } // namespace browser_sync |
| 380 | 382 |
| 381 #endif // COMPONENTS_SYNC_DRIVER_GLUE_SYNC_BACKEND_HOST_IMPL_H_ | 383 #endif // COMPONENTS_SYNC_DRIVER_GLUE_SYNC_BACKEND_HOST_IMPL_H_ |
| OLD | NEW |