Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(21)

Side by Side Diff: sync/internal_api/public/sync_manager.h

Issue 10911084: Implement Invalidator::Acknowledge (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Adapt patch to new TickClock interface Created 7 years, 9 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
OLDNEW
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
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
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_
OLDNEW
« no previous file with comments | « chrome/browser/sync/profile_sync_service_unittest.cc ('k') | sync/internal_api/public/test/fake_sync_manager.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698