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

Unified Diff: chrome/browser/sync/profile_sync_service.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, 10 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « chrome/browser/sync/invalidation_frontend.h ('k') | chrome/browser/sync/profile_sync_service.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/sync/profile_sync_service.h
diff --git a/chrome/browser/sync/profile_sync_service.h b/chrome/browser/sync/profile_sync_service.h
index 8eb22b6a93da1fc151c36344185dae6bca5d57be..d45821f83d817d521db2cfb191bc94962fea9993 100644
--- a/chrome/browser/sync/profile_sync_service.h
+++ b/chrome/browser/sync/profile_sync_service.h
@@ -7,6 +7,8 @@
#include <list>
#include <string>
+#include <utility>
+#include <vector>
#include "base/basictypes.h"
#include "base/compiler_specific.h"
@@ -599,6 +601,10 @@ class ProfileSyncService : public ProfileSyncServiceBase,
const syncer::ObjectIdSet& ids) OVERRIDE;
virtual void UnregisterInvalidationHandler(
syncer::InvalidationHandler* handler) OVERRIDE;
+ virtual void AcknowledgeInvalidation(
+ const invalidation::ObjectId& id,
+ const syncer::AckHandle& ack_handle) OVERRIDE;
+
virtual syncer::InvalidatorState GetInvalidatorState() const OVERRIDE;
// ProfileKeyedService implementation. This must be called exactly
@@ -673,6 +679,8 @@ class ProfileSyncService : public ProfileSyncServiceBase,
ERROR_REASON_ACTIONABLE_ERROR,
ERROR_REASON_LIMIT
};
+ typedef std::vector<std::pair<invalidation::ObjectId,
+ syncer::AckHandle> > AckHandleReplayQueue;
friend class ProfileSyncServicePasswordTest;
friend class SyncTest;
friend class TestProfileSyncService;
@@ -900,6 +908,8 @@ class ProfileSyncService : public ProfileSyncServiceBase,
// Dispatches invalidations to handlers. Set in Initialize() and
// unset in Shutdown().
scoped_ptr<syncer::InvalidatorRegistrar> invalidator_registrar_;
+ // Queues any acknowledgements received while the backend is uninitialized.
+ AckHandleReplayQueue ack_replay_queue_;
// Sync's internal debug info listener. Used to record datatype configuration
// and association information.
« no previous file with comments | « chrome/browser/sync/invalidation_frontend.h ('k') | chrome/browser/sync/profile_sync_service.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698