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

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

Issue 2203673002: [Sync] Move //components/sync_driver to //components/sync/driver. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@sd-a
Patch Set: Full change rebased on static lib. Created 4 years, 4 months 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 2012 The Chromium Authors. All rights reserved. 1 // Copyright 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 #ifndef COMPONENTS_SYNC_DRIVER_GLUE_SYNC_BACKEND_REGISTRAR_H_ 5 #ifndef COMPONENTS_SYNC_DRIVER_GLUE_SYNC_BACKEND_REGISTRAR_H_
6 #define COMPONENTS_SYNC_DRIVER_GLUE_SYNC_BACKEND_REGISTRAR_H_ 6 #define COMPONENTS_SYNC_DRIVER_GLUE_SYNC_BACKEND_REGISTRAR_H_
7 7
8 #include <stdint.h> 8 #include <stdint.h>
9 9
10 #include <map> 10 #include <map>
(...skipping 129 matching lines...) Expand 10 before | Expand all | Expand 10 after
140 // Release ownership of |sync_thread_|. Called when sync is disabled. 140 // Release ownership of |sync_thread_|. Called when sync is disabled.
141 std::unique_ptr<base::Thread> ReleaseSyncThread(); 141 std::unique_ptr<base::Thread> ReleaseSyncThread();
142 142
143 // Unregister workers from loop destruction observation. 143 // Unregister workers from loop destruction observation.
144 void Shutdown(); 144 void Shutdown();
145 145
146 base::Thread* sync_thread(); 146 base::Thread* sync_thread();
147 147
148 private: 148 private:
149 typedef std::map<syncer::ModelSafeGroup, 149 typedef std::map<syncer::ModelSafeGroup,
150 scoped_refptr<syncer::ModelSafeWorker>> WorkerMap; 150 scoped_refptr<syncer::ModelSafeWorker>>
151 WorkerMap;
151 typedef std::map<syncer::ModelType, sync_driver::ChangeProcessor*> 152 typedef std::map<syncer::ModelType, sync_driver::ChangeProcessor*>
152 ProcessorMap; 153 ProcessorMap;
153 154
154 // Add a worker for |group| to the worker map if one can be created. 155 // Add a worker for |group| to the worker map if one can be created.
155 void MaybeAddWorker(syncer::ModelSafeGroup group); 156 void MaybeAddWorker(syncer::ModelSafeGroup group);
156 157
157 // Callback after workers unregister from observing destruction of their 158 // Callback after workers unregister from observing destruction of their
158 // working loops. 159 // working loops.
159 void OnWorkerUnregistrationDone(syncer::ModelSafeGroup group); 160 void OnWorkerUnregistrationDone(syncer::ModelSafeGroup group);
160 161
(...skipping 69 matching lines...) Expand 10 before | Expand all | Expand 10 after
230 // Set of types with non-blocking implementation (as opposed to directory 231 // Set of types with non-blocking implementation (as opposed to directory
231 // based). 232 // based).
232 syncer::ModelTypeSet non_blocking_types_; 233 syncer::ModelTypeSet non_blocking_types_;
233 234
234 DISALLOW_COPY_AND_ASSIGN(SyncBackendRegistrar); 235 DISALLOW_COPY_AND_ASSIGN(SyncBackendRegistrar);
235 }; 236 };
236 237
237 } // namespace browser_sync 238 } // namespace browser_sync
238 239
239 #endif // COMPONENTS_SYNC_DRIVER_GLUE_SYNC_BACKEND_REGISTRAR_H_ 240 #endif // COMPONENTS_SYNC_DRIVER_GLUE_SYNC_BACKEND_REGISTRAR_H_
OLDNEW
« no previous file with comments | « components/sync/driver/glue/sync_backend_host_mock.cc ('k') | components/sync/driver/glue/sync_backend_registrar.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698