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

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

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 #include "components/sync/driver/glue/sync_backend_host_mock.h" 5 #include "components/sync/driver/glue/sync_backend_host_mock.h"
6 6
7 #include "components/sync/driver/sync_frontend.h" 7 #include "components/sync/driver/sync_frontend.h"
8 #include "components/sync/engine/activation_context.h" 8 #include "components/sync/engine/activation_context.h"
9 9
10 namespace syncer { 10 namespace syncer {
11 11
12 const char kTestCacheGuid[] = "test-guid"; 12 const char kTestCacheGuid[] = "test-guid";
13 13
14 SyncBackendHostMock::SyncBackendHostMock() : fail_initial_download_(false) {} 14 SyncBackendHostMock::SyncBackendHostMock() : fail_initial_download_(false) {}
15 SyncBackendHostMock::~SyncBackendHostMock() {} 15 SyncBackendHostMock::~SyncBackendHostMock() {}
16 16
17 void SyncBackendHostMock::Initialize( 17 void SyncBackendHostMock::Initialize(
18 SyncFrontend* frontend, 18 SyncFrontend* frontend,
19 base::Thread* sync_thread, 19 base::Thread* sync_thread,
20 const scoped_refptr<base::SingleThreadTaskRunner>& db_thread,
21 const scoped_refptr<base::SingleThreadTaskRunner>& file_thread,
22 const WeakHandle<JsEventHandler>& event_handler, 20 const WeakHandle<JsEventHandler>& event_handler,
23 const GURL& service_url, 21 const GURL& service_url,
24 const std::string& sync_user_agent, 22 const std::string& sync_user_agent,
25 const SyncCredentials& credentials, 23 const SyncCredentials& credentials,
26 bool delete_sync_data_folder, 24 bool delete_sync_data_folder,
27 bool enable_local_sync_backend, 25 bool enable_local_sync_backend,
28 const base::FilePath& local_sync_backend_folder, 26 const base::FilePath& local_sync_backend_folder,
29 std::unique_ptr<SyncManagerFactory> sync_manager_factory, 27 std::unique_ptr<SyncManagerFactory> sync_manager_factory,
30 const WeakHandle<UnrecoverableErrorHandler>& unrecoverable_error_handler, 28 const WeakHandle<UnrecoverableErrorHandler>& unrecoverable_error_handler,
31 const base::Closure& report_unrecoverable_error_function, 29 const base::Closure& report_unrecoverable_error_function,
(...skipping 101 matching lines...) Expand 10 before | Expand all | Expand 10 after
133 131
134 void SyncBackendHostMock::ClearServerData( 132 void SyncBackendHostMock::ClearServerData(
135 const SyncManager::ClearServerDataCallback& callback) { 133 const SyncManager::ClearServerDataCallback& callback) {
136 callback.Run(); 134 callback.Run();
137 } 135 }
138 136
139 void SyncBackendHostMock::OnCookieJarChanged(bool account_mismatch, 137 void SyncBackendHostMock::OnCookieJarChanged(bool account_mismatch,
140 bool empty_jar) {} 138 bool empty_jar) {}
141 139
142 } // namespace syncer 140 } // namespace syncer
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698