OLD | NEW |
1 // Copyright 2012 The Chromium Authors. All rights reserved. | 1 // Copyright 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 // Data whose types are not in |new_routing_info| are purged from sync | 370 // Data whose types are not in |new_routing_info| are purged from sync |
366 // directory. The purged data is backed up in delete journal for recovery in | 371 // directory. The purged data is backed up in delete journal for recovery in |
(...skipping 60 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
427 // Returns the SyncManager's encryption handler. | 432 // Returns the SyncManager's encryption handler. |
428 virtual SyncEncryptionHandler* GetEncryptionHandler() = 0; | 433 virtual SyncEncryptionHandler* GetEncryptionHandler() = 0; |
429 | 434 |
430 // Ask the SyncManager to fetch updates for the given types. | 435 // Ask the SyncManager to fetch updates for the given types. |
431 virtual void RefreshTypes(ModelTypeSet types) = 0; | 436 virtual void RefreshTypes(ModelTypeSet types) = 0; |
432 }; | 437 }; |
433 | 438 |
434 } // namespace syncer | 439 } // namespace syncer |
435 | 440 |
436 #endif // SYNC_INTERNAL_API_PUBLIC_SYNC_MANAGER_H_ | 441 #endif // SYNC_INTERNAL_API_PUBLIC_SYNC_MANAGER_H_ |
OLD | NEW |