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

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

Issue 2489433002: [Sync] Move thread checking into the ModelSafeWorker interface. (Closed)
Patch Set: Improve/add comments. Created 4 years, 1 month 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 58 matching lines...) Expand 10 before | Expand all | Expand 10 after
69 const scoped_refptr<base::SingleThreadTaskRunner>& ui_thread, 69 const scoped_refptr<base::SingleThreadTaskRunner>& ui_thread,
70 invalidation::InvalidationService* invalidator, 70 invalidation::InvalidationService* invalidator,
71 const base::WeakPtr<SyncPrefs>& sync_prefs, 71 const base::WeakPtr<SyncPrefs>& sync_prefs,
72 const base::FilePath& sync_folder); 72 const base::FilePath& sync_folder);
73 ~SyncBackendHostImpl() override; 73 ~SyncBackendHostImpl() override;
74 74
75 // SyncBackendHost implementation. 75 // SyncBackendHost implementation.
76 void Initialize( 76 void Initialize(
77 SyncFrontend* frontend, 77 SyncFrontend* frontend,
78 base::Thread* sync_thread, 78 base::Thread* sync_thread,
79 const scoped_refptr<base::SingleThreadTaskRunner>& db_thread,
80 const scoped_refptr<base::SingleThreadTaskRunner>& file_thread,
81 const WeakHandle<JsEventHandler>& event_handler, 79 const WeakHandle<JsEventHandler>& event_handler,
82 const GURL& service_url, 80 const GURL& service_url,
83 const std::string& sync_user_agent, 81 const std::string& sync_user_agent,
84 const SyncCredentials& credentials, 82 const SyncCredentials& credentials,
85 bool delete_sync_data_folder, 83 bool delete_sync_data_folder,
86 bool enable_local_sync_backend, 84 bool enable_local_sync_backend,
87 const base::FilePath& local_sync_backend_folder, 85 const base::FilePath& local_sync_backend_folder,
88 std::unique_ptr<SyncManagerFactory> sync_manager_factory, 86 std::unique_ptr<SyncManagerFactory> sync_manager_factory,
89 const WeakHandle<UnrecoverableErrorHandler>& unrecoverable_error_handler, 87 const WeakHandle<UnrecoverableErrorHandler>& unrecoverable_error_handler,
90 const base::Closure& report_unrecoverable_error_function, 88 const base::Closure& report_unrecoverable_error_function,
(...skipping 263 matching lines...) Expand 10 before | Expand all | Expand 10 after
354 bool invalidation_handler_registered_; 352 bool invalidation_handler_registered_;
355 353
356 base::WeakPtrFactory<SyncBackendHostImpl> weak_ptr_factory_; 354 base::WeakPtrFactory<SyncBackendHostImpl> weak_ptr_factory_;
357 355
358 DISALLOW_COPY_AND_ASSIGN(SyncBackendHostImpl); 356 DISALLOW_COPY_AND_ASSIGN(SyncBackendHostImpl);
359 }; 357 };
360 358
361 } // namespace syncer 359 } // namespace syncer
362 360
363 #endif // COMPONENTS_SYNC_DRIVER_GLUE_SYNC_BACKEND_HOST_IMPL_H_ 361 #endif // COMPONENTS_SYNC_DRIVER_GLUE_SYNC_BACKEND_HOST_IMPL_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698