Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(44)

Side by Side Diff: components/sync/driver/glue/sync_backend_host_impl.h

Issue 2555433003: [Sync] Plumb initial type set from engine to DTM. (Closed)
Patch Set: Rebase. Created 4 years ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
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 142 matching lines...) Expand 10 before | Expand all | Expand 10 after
153 const ModelTypeSet succeeded_configuration_types, 153 const ModelTypeSet succeeded_configuration_types,
154 const ModelTypeSet failed_configuration_types, 154 const ModelTypeSet failed_configuration_types,
155 const base::Callback<void(ModelTypeSet, ModelTypeSet)>& ready_task); 155 const base::Callback<void(ModelTypeSet, ModelTypeSet)>& ready_task);
156 156
157 // Reports backend initialization success. Includes some objects from sync 157 // Reports backend initialization success. Includes some objects from sync
158 // manager initialization to be passed back to the UI thread. 158 // manager initialization to be passed back to the UI thread.
159 // 159 //
160 // |model_type_connector| is our ModelTypeConnector, which is owned because in 160 // |model_type_connector| is our ModelTypeConnector, which is owned because in
161 // production it is a proxy object to the real ModelTypeConnector. 161 // production it is a proxy object to the real ModelTypeConnector.
162 virtual void HandleInitializationSuccessOnFrontendLoop( 162 virtual void HandleInitializationSuccessOnFrontendLoop(
163 ModelTypeSet initial_types,
163 const WeakHandle<JsBackend> js_backend, 164 const WeakHandle<JsBackend> js_backend,
164 const WeakHandle<DataTypeDebugInfoListener> debug_info_listener, 165 const WeakHandle<DataTypeDebugInfoListener> debug_info_listener,
165 std::unique_ptr<ModelTypeConnector> model_type_connector, 166 std::unique_ptr<ModelTypeConnector> model_type_connector,
166 const std::string& cache_guid); 167 const std::string& cache_guid);
167 168
168 // Forwards a ProtocolEvent to the host. Will not be called unless a call to 169 // Forwards a ProtocolEvent to the host. Will not be called unless a call to
169 // SetForwardProtocolEvents() explicitly requested that we start forwarding 170 // SetForwardProtocolEvents() explicitly requested that we start forwarding
170 // these events. 171 // these events.
171 void HandleProtocolEventOnFrontendLoop(std::unique_ptr<ProtocolEvent> event); 172 void HandleProtocolEventOnFrontendLoop(std::unique_ptr<ProtocolEvent> event);
172 173
(...skipping 166 matching lines...) Expand 10 before | Expand all | Expand 10 after
339 base::ThreadChecker thread_checker_; 340 base::ThreadChecker thread_checker_;
340 341
341 base::WeakPtrFactory<SyncBackendHostImpl> weak_ptr_factory_; 342 base::WeakPtrFactory<SyncBackendHostImpl> weak_ptr_factory_;
342 343
343 DISALLOW_COPY_AND_ASSIGN(SyncBackendHostImpl); 344 DISALLOW_COPY_AND_ASSIGN(SyncBackendHostImpl);
344 }; 345 };
345 346
346 } // namespace syncer 347 } // namespace syncer
347 348
348 #endif // COMPONENTS_SYNC_DRIVER_GLUE_SYNC_BACKEND_HOST_IMPL_H_ 349 #endif // COMPONENTS_SYNC_DRIVER_GLUE_SYNC_BACKEND_HOST_IMPL_H_
OLDNEW
« no previous file with comments | « components/sync/driver/glue/sync_backend_host_core.cc ('k') | components/sync/driver/glue/sync_backend_host_impl.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698