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_CALLBACK_H_ | |
7 #define CHROME_BROWSER_SYNC_NOTIFIER_SYNC_NOTIFIER_CALLBACK_H_ | |
8 | |
9 #include "jingle/notifier/listener/notification_defines.h" | |
10 | |
11 namespace sync_notifier { | |
12 | |
13 struct NotificationData { | |
14 std::string service_url; | |
15 std::string service_specific_data; | |
16 }; | |
17 | |
18 class SyncNotifierCallback { | |
akalin
2011/03/08 02:48:30
I think it would be better to rename this SyncNoti
Agrawal
2011/03/09 01:57:04
Done.
| |
19 public: | |
20 SyncNotifierCallback() {} | |
21 virtual ~SyncNotifierCallback() {} | |
22 | |
23 virtual void OnIncomingNotification( | |
24 const IncomingNotificationData& notification_data) = 0; | |
akalin
2011/03/08 02:48:30
I think this should take a browser_sync::sessions:
Agrawal
2011/03/09 01:57:04
The data parsing also needs ModelSafeWorkerRegistr
| |
25 virtual void OnNotificationStateChange(bool notifications_enabled) = 0; | |
26 virtual void OnOutgoingNotification() = 0; | |
akalin
2011/03/08 02:48:30
No need for an outgoing notification.
Agrawal
2011/03/09 01:57:04
SyncInternal::OnOutgoingNotification increments so
| |
27 virtual void StoreCookie(const std::string& cookie) = 0; | |
akalin
2011/03/08 02:48:30
I don't think this should be part of the observer
Agrawal
2011/03/09 01:57:04
This is not clear to me.
The state/cookie is curre
| |
28 }; | |
29 } // namespace sync_notifier | |
30 #endif // CHROME_BROWSER_SYNC_NOTIFIER_SYNC_NOTIFIER_CALLBACK_H_ | |
OLD | NEW |