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 c48ae6425cef075a4740fb5a6727ba5fc4c426b2..f592a192a4e501a5ab0093e8ef251651b8cea1b1 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" |
@@ -595,6 +597,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 |
@@ -669,6 +675,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; |
@@ -896,6 +904,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. |