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

Unified Diff: sync/notifier/sync_invalidation_listener.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/notifier/p2p_invalidator_unittest.cc ('k') | sync/notifier/sync_invalidation_listener.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: sync/notifier/sync_invalidation_listener.h
diff --git a/sync/notifier/sync_invalidation_listener.h b/sync/notifier/sync_invalidation_listener.h
index 860f6e7d7a4c9930897cdd27a7193d57e86dde9d..ed7f03143ccb8aafbf726819c57857bc0110a72d 100644
--- a/sync/notifier/sync_invalidation_listener.h
+++ b/sync/notifier/sync_invalidation_listener.h
@@ -20,7 +20,7 @@
#include "jingle/notifier/listener/push_client_observer.h"
#include "sync/internal_api/public/util/weak_handle.h"
#include "sync/notifier/invalidation_state_tracker.h"
-#include "sync/notifier/notifications_disabled_reason.h"
+#include "sync/notifier/invalidator_state.h"
#include "sync/notifier/object_id_state_map.h"
#include "sync/notifier/state_writer.h"
#include "sync/notifier/sync_system_resources.h"
@@ -58,10 +58,7 @@ class SyncInvalidationListener
virtual void OnInvalidate(const ObjectIdStateMap& id_state_map) = 0;
- virtual void OnNotificationsEnabled() = 0;
-
- virtual void OnNotificationsDisabled(
- NotificationsDisabledReason reason) = 0;
+ virtual void OnInvalidatorStateChange(InvalidatorState state) = 0;
};
explicit SyncInvalidationListener(
@@ -135,7 +132,7 @@ class SyncInvalidationListener
private:
void Stop();
- NotificationsDisabledReason GetState() const;
+ InvalidatorState GetState() const;
void EmitStateChange();
@@ -152,10 +149,9 @@ class SyncInvalidationListener
// Stored to pass to |registration_manager_| on start.
ObjectIdSet registered_ids_;
- // The states of the ticl and the push client (with
- // NO_NOTIFICATION_ERROR meaning notifications are enabled).
- NotificationsDisabledReason ticl_state_;
- NotificationsDisabledReason push_client_state_;
+ // The states of the ticl and the push client.
+ InvalidatorState ticl_state_;
+ InvalidatorState push_client_state_;
DISALLOW_COPY_AND_ASSIGN(SyncInvalidationListener);
};
« no previous file with comments | « sync/notifier/p2p_invalidator_unittest.cc ('k') | sync/notifier/sync_invalidation_listener.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698