OLD | NEW |
---|---|
(Empty) | |
1 // Copyright (c) 2011 The Chromium Authors. All rights reserved. | |
2 // Use of this source code is governed by a BSD-style license that can be | |
3 // found in the LICENSE file. | |
4 | |
5 | |
6 #ifndef CHROME_BROWSER_SYNC_NOTIFIER_SYNC_NOTIFIER_OBSERVER_H_ | |
7 #define CHROME_BROWSER_SYNC_NOTIFIER_SYNC_NOTIFIER_OBSERVER_H_ | |
8 | |
akalin
2011/03/10 04:26:45
#include <string>
Agrawal
2011/03/11 01:13:07
Done.
| |
9 #include "chrome/browser/sync/sessions/session_state.h" | |
10 | |
11 namespace sync_notifier { | |
12 | |
13 class SyncNotifierObserver { | |
14 public: | |
15 SyncNotifierObserver() {} | |
16 virtual ~SyncNotifierObserver() {} | |
17 | |
18 virtual void OnIncomingNotification( | |
19 const browser_sync::sessions::TypePayloadMap& type_payloads) = 0; | |
20 virtual void OnNotificationStateChange(bool notifications_enabled) = 0; | |
21 | |
22 // TODO(nileshagrawal): Find a way to hide state handling inside the | |
23 // sync notifier implementation. | |
24 virtual void StoreCookie(const std::string& cookie) = 0; | |
akalin
2011/03/10 04:26:45
Rename to WriteState or StoreState, matching exist
Agrawal
2011/03/11 01:13:07
Done.
| |
25 }; | |
26 } // namespace sync_notifier | |
27 #endif // CHROME_BROWSER_SYNC_NOTIFIER_SYNC_NOTIFIER_OBSERVER_H_ | |
OLD | NEW |