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