OLD | NEW |
1 // Copyright (c) 2006-2008 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2006-2008 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 CHROME_BROWSER_SYNC_GLUE_SYNC_BACKEND_HOST_H_ | 5 #ifndef CHROME_BROWSER_SYNC_GLUE_SYNC_BACKEND_HOST_H_ |
6 #define CHROME_BROWSER_SYNC_GLUE_SYNC_BACKEND_HOST_H_ | 6 #define CHROME_BROWSER_SYNC_GLUE_SYNC_BACKEND_HOST_H_ |
7 | 7 |
8 #include <map> | 8 #include <map> |
9 #include <set> | 9 #include <set> |
10 #include <string> | 10 #include <string> |
(...skipping 170 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
181 bool delete_sync_data_folder, | 181 bool delete_sync_data_folder, |
182 NotificationMethod notification_method) { | 182 NotificationMethod notification_method) { |
183 if (!core_thread_.Start()) | 183 if (!core_thread_.Start()) |
184 return; | 184 return; |
185 registrar_.workers[GROUP_UI] = new UIModelWorker(frontend_loop_); | 185 registrar_.workers[GROUP_UI] = new UIModelWorker(frontend_loop_); |
186 registrar_.routing_info[syncable::BOOKMARKS] = GROUP_PASSIVE; | 186 registrar_.routing_info[syncable::BOOKMARKS] = GROUP_PASSIVE; |
187 registrar_.routing_info[syncable::PREFERENCES] = GROUP_PASSIVE; | 187 registrar_.routing_info[syncable::PREFERENCES] = GROUP_PASSIVE; |
188 registrar_.routing_info[syncable::AUTOFILL] = GROUP_PASSIVE; | 188 registrar_.routing_info[syncable::AUTOFILL] = GROUP_PASSIVE; |
189 registrar_.routing_info[syncable::THEMES] = GROUP_PASSIVE; | 189 registrar_.routing_info[syncable::THEMES] = GROUP_PASSIVE; |
190 registrar_.routing_info[syncable::TYPED_URLS] = GROUP_PASSIVE; | 190 registrar_.routing_info[syncable::TYPED_URLS] = GROUP_PASSIVE; |
191 registrar_.routing_info[syncable::PASSWORD] = GROUP_PASSIVE; | 191 registrar_.routing_info[syncable::PASSWORDS] = GROUP_PASSIVE; |
192 | 192 |
193 core_thread_.message_loop()->PostTask(FROM_HERE, | 193 core_thread_.message_loop()->PostTask(FROM_HERE, |
194 NewRunnableMethod(core_.get(), | 194 NewRunnableMethod(core_.get(), |
195 &SyncBackendHost::Core::DoInitializeForTest, | 195 &SyncBackendHost::Core::DoInitializeForTest, |
196 test_user, | 196 test_user, |
197 network_change_notifier_thread, | 197 network_change_notifier_thread, |
198 factory, | 198 factory, |
199 auth_factory, | 199 auth_factory, |
200 delete_sync_data_folder, | 200 delete_sync_data_folder, |
201 notification_method)); | 201 notification_method)); |
(...skipping 242 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
444 | 444 |
445 // UI-thread cache of the last SyncSessionSnapshot received from syncapi. | 445 // UI-thread cache of the last SyncSessionSnapshot received from syncapi. |
446 scoped_ptr<sessions::SyncSessionSnapshot> last_snapshot_; | 446 scoped_ptr<sessions::SyncSessionSnapshot> last_snapshot_; |
447 | 447 |
448 DISALLOW_COPY_AND_ASSIGN(SyncBackendHost); | 448 DISALLOW_COPY_AND_ASSIGN(SyncBackendHost); |
449 }; | 449 }; |
450 | 450 |
451 } // namespace browser_sync | 451 } // namespace browser_sync |
452 | 452 |
453 #endif // CHROME_BROWSER_SYNC_GLUE_SYNC_BACKEND_HOST_H_ | 453 #endif // CHROME_BROWSER_SYNC_GLUE_SYNC_BACKEND_HOST_H_ |
OLD | NEW |