summaryrefslogtreecommitdiffstats
path: root/chrome/browser/sync/notifier/sync_notifier_observer.h
blob: 79439ceeb8c21e8ec03b536423929e547e8f8c58 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
// Copyright (c) 2011 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 CHROME_BROWSER_SYNC_NOTIFIER_SYNC_NOTIFIER_OBSERVER_H_
#define CHROME_BROWSER_SYNC_NOTIFIER_SYNC_NOTIFIER_OBSERVER_H_

#include <string>

#include "chrome/browser/sync/syncable/model_type_payload_map.h"

namespace sync_notifier {

class SyncNotifierObserver {
 public:
  SyncNotifierObserver() {}
  virtual ~SyncNotifierObserver() {}

  virtual void OnIncomingNotification(
      const syncable::ModelTypePayloadMap& type_payloads) = 0;
  virtual void OnNotificationStateChange(bool notifications_enabled) = 0;

  // TODO(nileshagrawal): Find a way to hide state handling inside the
  // sync notifier implementation.
  virtual void StoreState(const std::string& state) = 0;
};
}  // namespace sync_notifier
#endif  // CHROME_BROWSER_SYNC_NOTIFIER_SYNC_NOTIFIER_OBSERVER_H_