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 SYNC_INTERNAL_API_PUBLIC_SYNC_MANAGER_H_ | 5 #ifndef SYNC_INTERNAL_API_PUBLIC_SYNC_MANAGER_H_ |
6 #define SYNC_INTERNAL_API_PUBLIC_SYNC_MANAGER_H_ | 6 #define SYNC_INTERNAL_API_PUBLIC_SYNC_MANAGER_H_ |
7 | 7 |
8 #include <string> | 8 #include <string> |
9 #include <vector> | 9 #include <vector> |
10 | 10 |
(...skipping 336 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
347 | 347 |
348 // Forwards to the underlying notifier (see comments in invalidator.h). | 348 // Forwards to the underlying notifier (see comments in invalidator.h). |
349 virtual void UpdateRegisteredInvalidationIds( | 349 virtual void UpdateRegisteredInvalidationIds( |
350 InvalidationHandler* handler, | 350 InvalidationHandler* handler, |
351 const ObjectIdSet& ids) = 0; | 351 const ObjectIdSet& ids) = 0; |
352 | 352 |
353 // Forwards to the underlying notifier (see comments in invalidator.h). | 353 // Forwards to the underlying notifier (see comments in invalidator.h). |
354 virtual void UnregisterInvalidationHandler( | 354 virtual void UnregisterInvalidationHandler( |
355 InvalidationHandler* handler) = 0; | 355 InvalidationHandler* handler) = 0; |
356 | 356 |
| 357 // Forwards to the underlying notifier (see comments in invalidator.h). |
| 358 virtual void AcknowledgeInvalidation( |
| 359 const invalidation::ObjectId& id, |
| 360 const syncer::AckHandle& ack_handle) = 0; |
| 361 |
357 // Put the syncer in normal mode ready to perform nudges and polls. | 362 // Put the syncer in normal mode ready to perform nudges and polls. |
358 virtual void StartSyncingNormally( | 363 virtual void StartSyncingNormally( |
359 const ModelSafeRoutingInfo& routing_info) = 0; | 364 const ModelSafeRoutingInfo& routing_info) = 0; |
360 | 365 |
361 // Switches the mode of operation to CONFIGURATION_MODE and performs | 366 // Switches the mode of operation to CONFIGURATION_MODE and performs |
362 // any configuration tasks needed as determined by the params. Once complete, | 367 // any configuration tasks needed as determined by the params. Once complete, |
363 // syncer will remain in CONFIGURATION_MODE until StartSyncingNormally is | 368 // syncer will remain in CONFIGURATION_MODE until StartSyncingNormally is |
364 // called. | 369 // called. |
365 // |ready_task| is invoked when the configuration completes. | 370 // |ready_task| is invoked when the configuration completes. |
366 // |retry_task| is invoked if the configuration job could not immediately | 371 // |retry_task| is invoked if the configuration job could not immediately |
(...skipping 49 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
416 // any remaining unsynced items. May be called on any thread. | 421 // any remaining unsynced items. May be called on any thread. |
417 virtual bool HasUnsyncedItems() = 0; | 422 virtual bool HasUnsyncedItems() = 0; |
418 | 423 |
419 // Returns the SyncManager's encryption handler. | 424 // Returns the SyncManager's encryption handler. |
420 virtual SyncEncryptionHandler* GetEncryptionHandler() = 0; | 425 virtual SyncEncryptionHandler* GetEncryptionHandler() = 0; |
421 }; | 426 }; |
422 | 427 |
423 } // namespace syncer | 428 } // namespace syncer |
424 | 429 |
425 #endif // SYNC_INTERNAL_API_PUBLIC_SYNC_MANAGER_H_ | 430 #endif // SYNC_INTERNAL_API_PUBLIC_SYNC_MANAGER_H_ |
OLD | NEW |