diff options
author | dcheng@chromium.org <dcheng@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2012-08-28 03:17:58 +0000 |
---|---|---|
committer | dcheng@chromium.org <dcheng@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2012-08-28 03:17:58 +0000 |
commit | a329cb82a4627bea79c0db5dabe09698ad83c27e (patch) | |
tree | ca12b48cef0de11d3058bee683e082281f5061ec /sync/notifier/sync_notifier_observer.h | |
parent | 3c6babd32ae5b7e8125ac16ee4e686654bcf59d6 (diff) | |
download | chromium_src-a329cb82a4627bea79c0db5dabe09698ad83c27e.zip chromium_src-a329cb82a4627bea79c0db5dabe09698ad83c27e.tar.gz chromium_src-a329cb82a4627bea79c0db5dabe09698ad83c27e.tar.bz2 |
Rename SyncNotifier->Invalidator and SyncNotifierObserver->InvalidationHandler.
This makes the naming more consistent with how the various classes and
interfaces are used, since they are not sync-specific anymore.
BUG=none
TBR=sky
Review URL: https://chromiumcodereview.appspot.com/10875064
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@153619 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'sync/notifier/sync_notifier_observer.h')
-rw-r--r-- | sync/notifier/sync_notifier_observer.h | 42 |
1 files changed, 0 insertions, 42 deletions
diff --git a/sync/notifier/sync_notifier_observer.h b/sync/notifier/sync_notifier_observer.h deleted file mode 100644 index 1dd5ea6..0000000 --- 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_ |