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 173 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
184 syncer::ReportUnrecoverableErrorFunction | 184 syncer::ReportUnrecoverableErrorFunction |
185 report_unrecoverable_error_function); | 185 report_unrecoverable_error_function); |
186 | 186 |
187 // Called on |frontend_loop| to update SyncCredentials. | 187 // Called on |frontend_loop| to update SyncCredentials. |
188 virtual void UpdateCredentials(const syncer::SyncCredentials& credentials); | 188 virtual void UpdateCredentials(const syncer::SyncCredentials& credentials); |
189 | 189 |
190 // Registers the underlying frontend for the given IDs to the underlying | 190 // Registers the underlying frontend for the given IDs to the underlying |
191 // notifier. This lasts until StopSyncingForShutdown() is called. | 191 // notifier. This lasts until StopSyncingForShutdown() is called. |
192 void UpdateRegisteredInvalidationIds(const syncer::ObjectIdSet& ids); | 192 void UpdateRegisteredInvalidationIds(const syncer::ObjectIdSet& ids); |
193 | 193 |
| 194 // Forwards an invalidation acknowledgement to the underlying notifier. |
| 195 void AcknowledgeInvalidation(const invalidation::ObjectId& id, |
| 196 const syncer::AckHandle& ack_handle); |
| 197 |
194 // This starts the SyncerThread running a Syncer object to communicate with | 198 // This starts the SyncerThread running a Syncer object to communicate with |
195 // sync servers. Until this is called, no changes will leave or enter this | 199 // sync servers. Until this is called, no changes will leave or enter this |
196 // browser from the cloud / sync servers. | 200 // browser from the cloud / sync servers. |
197 // Called on |frontend_loop_|. | 201 // Called on |frontend_loop_|. |
198 virtual void StartSyncingWithServer(); | 202 virtual void StartSyncingWithServer(); |
199 | 203 |
200 // Called on |frontend_loop_| to asynchronously set a new passphrase for | 204 // Called on |frontend_loop_| to asynchronously set a new passphrase for |
201 // encryption. Note that it is an error to call SetEncryptionPassphrase under | 205 // encryption. Note that it is an error to call SetEncryptionPassphrase under |
202 // the following circumstances: | 206 // the following circumstances: |
203 // - An explicit passphrase has already been set | 207 // - An explicit passphrase has already been set |
(...skipping 355 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
559 // HandleInitializationCompletedOnFrontendLoop. | 563 // HandleInitializationCompletedOnFrontendLoop. |
560 syncer::WeakHandle<syncer::JsBackend> js_backend_; | 564 syncer::WeakHandle<syncer::JsBackend> js_backend_; |
561 syncer::WeakHandle<syncer::DataTypeDebugInfoListener> debug_info_listener_; | 565 syncer::WeakHandle<syncer::DataTypeDebugInfoListener> debug_info_listener_; |
562 | 566 |
563 DISALLOW_COPY_AND_ASSIGN(SyncBackendHost); | 567 DISALLOW_COPY_AND_ASSIGN(SyncBackendHost); |
564 }; | 568 }; |
565 | 569 |
566 } // namespace browser_sync | 570 } // namespace browser_sync |
567 | 571 |
568 #endif // CHROME_BROWSER_SYNC_GLUE_SYNC_BACKEND_HOST_H_ | 572 #endif // CHROME_BROWSER_SYNC_GLUE_SYNC_BACKEND_HOST_H_ |
OLD | NEW |