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 166 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
177 syncer::ReportUnrecoverableErrorFunction | 177 syncer::ReportUnrecoverableErrorFunction |
178 report_unrecoverable_error_function); | 178 report_unrecoverable_error_function); |
179 | 179 |
180 // Called on |frontend_loop| to update SyncCredentials. | 180 // Called on |frontend_loop| to update SyncCredentials. |
181 void UpdateCredentials(const syncer::SyncCredentials& credentials); | 181 void UpdateCredentials(const syncer::SyncCredentials& credentials); |
182 | 182 |
183 // Registers the underlying frontend for the given IDs to the underlying | 183 // Registers the underlying frontend for the given IDs to the underlying |
184 // notifier. This lasts until StopSyncingForShutdown() is called. | 184 // notifier. This lasts until StopSyncingForShutdown() is called. |
185 void UpdateRegisteredInvalidationIds(const syncer::ObjectIdSet& ids); | 185 void UpdateRegisteredInvalidationIds(const syncer::ObjectIdSet& ids); |
186 | 186 |
| 187 // TODO(dcheng): Add a comment. |
| 188 void AcknowledgeInvalidation(const invalidation::ObjectId& id, |
| 189 const syncer::AckHandle& ack_handle); |
| 190 |
187 // This starts the SyncerThread running a Syncer object to communicate with | 191 // This starts the SyncerThread running a Syncer object to communicate with |
188 // sync servers. Until this is called, no changes will leave or enter this | 192 // sync servers. Until this is called, no changes will leave or enter this |
189 // browser from the cloud / sync servers. | 193 // browser from the cloud / sync servers. |
190 // Called on |frontend_loop_|. | 194 // Called on |frontend_loop_|. |
191 virtual void StartSyncingWithServer(); | 195 virtual void StartSyncingWithServer(); |
192 | 196 |
193 // Called on |frontend_loop_| to asynchronously set a new passphrase for | 197 // Called on |frontend_loop_| to asynchronously set a new passphrase for |
194 // encryption. Note that it is an error to call SetEncryptionPassphrase under | 198 // encryption. Note that it is an error to call SetEncryptionPassphrase under |
195 // the following circumstances: | 199 // the following circumstances: |
196 // - An explicit passphrase has already been set | 200 // - An explicit passphrase has already been set |
(...skipping 337 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
534 // it via OnBackendInitialized in the final state of | 538 // it via OnBackendInitialized in the final state of |
535 // HandleInitializationCompletedOnFrontendLoop. | 539 // HandleInitializationCompletedOnFrontendLoop. |
536 syncer::WeakHandle<syncer::JsBackend> js_backend_; | 540 syncer::WeakHandle<syncer::JsBackend> js_backend_; |
537 | 541 |
538 DISALLOW_COPY_AND_ASSIGN(SyncBackendHost); | 542 DISALLOW_COPY_AND_ASSIGN(SyncBackendHost); |
539 }; | 543 }; |
540 | 544 |
541 } // namespace browser_sync | 545 } // namespace browser_sync |
542 | 546 |
543 #endif // CHROME_BROWSER_SYNC_GLUE_SYNC_BACKEND_HOST_H_ | 547 #endif // CHROME_BROWSER_SYNC_GLUE_SYNC_BACKEND_HOST_H_ |
OLD | NEW |