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

Unified Diff: sync/notifier/sync_notifier_observer.h

Issue 10875064: Rename SyncNotifier->Invalidator and SyncNotifierObserver->InvalidationHandler. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Merge to ToT for landing Created 8 years, 4 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/sync_notifier_factory_unittest.cc ('k') | sync/notifier/sync_notifier_registrar.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: sync/notifier/sync_notifier_observer.h
diff --git a/sync/notifier/sync_notifier_observer.h b/sync/notifier/sync_notifier_observer.h
deleted file mode 100644
index 1dd5ea6a098b7271c409b57ad162326a98c62394..0000000000000000000000000000000000000000
--- a/sync/notifier/sync_notifier_observer.h
+++ /dev/null
@@ -1,42 +0,0 @@
-// Copyright (c) 2012 The Chromium Authors. All rights reserved.
-// Use of this source code is governed by a BSD-style license that can be
-// found in the LICENSE file.
-
-#ifndef SYNC_NOTIFIER_SYNC_NOTIFIER_OBSERVER_H_
-#define SYNC_NOTIFIER_SYNC_NOTIFIER_OBSERVER_H_
-
-#include "sync/notifier/object_id_state_map.h"
-#include "sync/notifier/notifications_disabled_reason.h"
-
-namespace syncer {
-
-enum IncomingNotificationSource {
- // The server is notifying us that one or more datatypes have stale data.
- REMOTE_NOTIFICATION,
- // A chrome datatype is requesting an optimistic refresh of its data.
- LOCAL_NOTIFICATION,
-};
-
-class SyncNotifierObserver {
- public:
- // Called when notifications are enabled.
- virtual void OnNotificationsEnabled() = 0;
-
- // Called when notifications are disabled, with the reason in
- // |reason|.
- virtual void OnNotificationsDisabled(
- NotificationsDisabledReason reason) = 0;
-
- // Called when a notification is received. The per-id states
- // are in |id_state_map| and the source is in |source|.
- virtual void OnIncomingNotification(
- const ObjectIdStateMap& id_state_map,
- IncomingNotificationSource source) = 0;
-
- protected:
- virtual ~SyncNotifierObserver() {}
-};
-
-} // namespace syncer
-
-#endif // SYNC_NOTIFIER_SYNC_NOTIFIER_OBSERVER_H_
« no previous file with comments | « sync/notifier/sync_notifier_factory_unittest.cc ('k') | sync/notifier/sync_notifier_registrar.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698