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

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

Issue 2407163004: [Sync] Move some directory-related things from core/ to syncable/. (Closed)
Patch Set: Created 4 years, 2 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 #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
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
OLDNEW
« no previous file with comments | « components/sync/driver/glue/sync_backend_host_impl.cc ('k') | components/sync/driver/glue/sync_backend_registrar_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698