OLD | NEW |
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 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 #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 <string> | 8 #include <string> |
9 | 9 |
10 #include "base/basictypes.h" | 10 #include "base/basictypes.h" |
(...skipping 163 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
174 const syncer::WeakHandle<syncer::JsEventHandler>& event_handler, | 174 const syncer::WeakHandle<syncer::JsEventHandler>& event_handler, |
175 const GURL& service_url, | 175 const GURL& service_url, |
176 const syncer::SyncCredentials& credentials, | 176 const syncer::SyncCredentials& credentials, |
177 bool delete_sync_data_folder, | 177 bool delete_sync_data_folder, |
178 syncer::SyncManagerFactory* sync_manager_factory, | 178 syncer::SyncManagerFactory* sync_manager_factory, |
179 syncer::UnrecoverableErrorHandler* unrecoverable_error_handler, | 179 syncer::UnrecoverableErrorHandler* unrecoverable_error_handler, |
180 syncer::ReportUnrecoverableErrorFunction | 180 syncer::ReportUnrecoverableErrorFunction |
181 report_unrecoverable_error_function); | 181 report_unrecoverable_error_function); |
182 | 182 |
183 // Called on |frontend_loop| to update SyncCredentials. | 183 // Called on |frontend_loop| to update SyncCredentials. |
184 void UpdateCredentials(const syncer::SyncCredentials& credentials); | 184 virtual void UpdateCredentials(const syncer::SyncCredentials& credentials); |
185 | 185 |
186 // Registers the underlying frontend for the given IDs to the underlying | 186 // Registers the underlying frontend for the given IDs to the underlying |
187 // notifier. This lasts until StopSyncingForShutdown() is called. | 187 // notifier. This lasts until StopSyncingForShutdown() is called. |
188 void UpdateRegisteredInvalidationIds(const syncer::ObjectIdSet& ids); | 188 void UpdateRegisteredInvalidationIds(const syncer::ObjectIdSet& ids); |
189 | 189 |
190 // This starts the SyncerThread running a Syncer object to communicate with | 190 // This starts the SyncerThread running a Syncer object to communicate with |
191 // sync servers. Until this is called, no changes will leave or enter this | 191 // sync servers. Until this is called, no changes will leave or enter this |
192 // browser from the cloud / sync servers. | 192 // browser from the cloud / sync servers. |
193 // Called on |frontend_loop_|. | 193 // Called on |frontend_loop_|. |
194 virtual void StartSyncingWithServer(); | 194 virtual void StartSyncingWithServer(); |
(...skipping 356 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
551 // HandleInitializationCompletedOnFrontendLoop. | 551 // HandleInitializationCompletedOnFrontendLoop. |
552 syncer::WeakHandle<syncer::JsBackend> js_backend_; | 552 syncer::WeakHandle<syncer::JsBackend> js_backend_; |
553 syncer::WeakHandle<syncer::DataTypeDebugInfoListener> debug_info_listener_; | 553 syncer::WeakHandle<syncer::DataTypeDebugInfoListener> debug_info_listener_; |
554 | 554 |
555 DISALLOW_COPY_AND_ASSIGN(SyncBackendHost); | 555 DISALLOW_COPY_AND_ASSIGN(SyncBackendHost); |
556 }; | 556 }; |
557 | 557 |
558 } // namespace browser_sync | 558 } // namespace browser_sync |
559 | 559 |
560 #endif // CHROME_BROWSER_SYNC_GLUE_SYNC_BACKEND_HOST_H_ | 560 #endif // CHROME_BROWSER_SYNC_GLUE_SYNC_BACKEND_HOST_H_ |
OLD | NEW |