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

Unified Diff: sync/notifier/fake_invalidation_handler.h

Issue 10916131: [Invalidations] Add GetInvalidatorState() to Invalidator{,Frontend} (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Fix android Created 8 years, 3 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 | « sync/internal_api/test/fake_sync_manager.cc ('k') | sync/notifier/fake_invalidation_handler.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: sync/notifier/fake_invalidation_handler.h
diff --git a/sync/notifier/fake_invalidation_handler.h b/sync/notifier/fake_invalidation_handler.h
index 1d9dcfbdf79e8cb3947034a8226379c8dd70efe5..fd6ffb3354be4fdbd955b41a87704d5c94b0dee3 100644
--- a/sync/notifier/fake_invalidation_handler.h
+++ b/sync/notifier/fake_invalidation_handler.h
@@ -7,6 +7,7 @@
#include <string>
+#include "base/basictypes.h"
#include "base/compiler_specific.h"
#include "sync/notifier/invalidation_handler.h"
@@ -17,24 +18,24 @@ class FakeInvalidationHandler : public InvalidationHandler {
FakeInvalidationHandler();
virtual ~FakeInvalidationHandler();
- NotificationsDisabledReason GetNotificationsDisabledReason() const;
- const ObjectIdStateMap& GetLastNotificationIdStateMap() const;
- IncomingNotificationSource GetLastNotificationSource() const;
- int GetNotificationCount() const;
+ InvalidatorState GetInvalidatorState() const;
+ const ObjectIdStateMap& GetLastInvalidationIdStateMap() const;
+ IncomingInvalidationSource GetLastInvalidationSource() const;
+ int GetInvalidationCount() const;
// InvalidationHandler implementation.
- virtual void OnNotificationsEnabled() OVERRIDE;
- virtual void OnNotificationsDisabled(
- NotificationsDisabledReason reason) OVERRIDE;
- virtual void OnIncomingNotification(
+ virtual void OnInvalidatorStateChange(InvalidatorState state) OVERRIDE;
+ virtual void OnIncomingInvalidation(
const ObjectIdStateMap& id_state_map,
- IncomingNotificationSource source) OVERRIDE;
+ IncomingInvalidationSource source) OVERRIDE;
private:
- NotificationsDisabledReason reason_;
+ InvalidatorState state_;
ObjectIdStateMap last_id_state_map_;
- IncomingNotificationSource last_source_;
- int notification_count_;
+ IncomingInvalidationSource last_source_;
+ int invalidation_count_;
+
+ DISALLOW_COPY_AND_ASSIGN(FakeInvalidationHandler);
};
} // namespace syncer
« no previous file with comments | « sync/internal_api/test/fake_sync_manager.cc ('k') | sync/notifier/fake_invalidation_handler.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698