OLD | NEW |
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 #include "components/sync/driver/glue/sync_backend_registrar.h" | 5 #include "components/sync/driver/glue/sync_backend_registrar.h" |
6 | 6 |
7 #include <algorithm> | 7 #include <algorithm> |
8 #include <cstddef> | 8 #include <cstddef> |
9 #include <utility> | 9 #include <utility> |
10 | 10 |
11 #include "base/logging.h" | 11 #include "base/logging.h" |
12 #include "base/message_loop/message_loop.h" | 12 #include "base/message_loop/message_loop.h" |
13 #include "components/sync/core/user_share.h" | |
14 #include "components/sync/driver/change_processor.h" | 13 #include "components/sync/driver/change_processor.h" |
15 #include "components/sync/driver/sync_client.h" | 14 #include "components/sync/driver/sync_client.h" |
| 15 #include "components/sync/syncable/user_share.h" |
16 | 16 |
17 namespace syncer { | 17 namespace syncer { |
18 | 18 |
19 SyncBackendRegistrar::SyncBackendRegistrar( | 19 SyncBackendRegistrar::SyncBackendRegistrar( |
20 const std::string& name, | 20 const std::string& name, |
21 SyncClient* sync_client, | 21 SyncClient* sync_client, |
22 std::unique_ptr<base::Thread> sync_thread, | 22 std::unique_ptr<base::Thread> sync_thread, |
23 const scoped_refptr<base::SingleThreadTaskRunner>& ui_thread, | 23 const scoped_refptr<base::SingleThreadTaskRunner>& ui_thread, |
24 const scoped_refptr<base::SingleThreadTaskRunner>& db_thread, | 24 const scoped_refptr<base::SingleThreadTaskRunner>& db_thread, |
25 const scoped_refptr<base::SingleThreadTaskRunner>& file_thread) | 25 const scoped_refptr<base::SingleThreadTaskRunner>& file_thread) |
(...skipping 347 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
373 base::Thread* SyncBackendRegistrar::sync_thread() { | 373 base::Thread* SyncBackendRegistrar::sync_thread() { |
374 return sync_thread_.get(); | 374 return sync_thread_.get(); |
375 } | 375 } |
376 | 376 |
377 ModelSafeGroup SyncBackendRegistrar::GetInitialGroupForType( | 377 ModelSafeGroup SyncBackendRegistrar::GetInitialGroupForType( |
378 ModelType type) const { | 378 ModelType type) const { |
379 return non_blocking_types_.Has(type) ? GROUP_NON_BLOCKING : GROUP_PASSIVE; | 379 return non_blocking_types_.Has(type) ? GROUP_NON_BLOCKING : GROUP_PASSIVE; |
380 } | 380 } |
381 | 381 |
382 } // namespace syncer | 382 } // namespace syncer |
OLD | NEW |