| 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_
|
|
|