OLD | NEW |
1 // Copyright (c) 2010 The Chromium Authors. All rights reserved. | 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 | 2 // Use of this source code is governed by a BSD-style license that can be |
3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
4 | 4 |
5 #ifndef JINGLE_NOTIFIER_LISTENER_NOTIFICATION_DEFINES_H_ | 5 #ifndef JINGLE_NOTIFIER_LISTENER_NOTIFICATION_DEFINES_H_ |
6 #define JINGLE_NOTIFIER_LISTENER_NOTIFICATION_DEFINES_H_ | 6 #define JINGLE_NOTIFIER_LISTENER_NOTIFICATION_DEFINES_H_ |
7 | 7 |
8 #include <string> | 8 #include <string> |
9 | 9 |
10 struct IncomingNotificationData { | 10 struct IncomingNotificationData { |
11 std::string service_url; | 11 std::string service_url; |
12 std::string service_specific_data; | 12 std::string service_specific_data; |
13 }; | 13 }; |
14 | 14 |
15 struct OutgoingNotificationData { | 15 struct OutgoingNotificationData { |
16 OutgoingNotificationData() : send_content(false), priority(0), | 16 OutgoingNotificationData(); |
17 require_subscription(false), | 17 ~OutgoingNotificationData(); |
18 write_to_cache_only(false) { | 18 |
19 } | |
20 // Id values | 19 // Id values |
21 std::string service_url; | 20 std::string service_url; |
22 std::string service_id; | 21 std::string service_id; |
23 // This bool signifies whether the content fields should be | 22 // This bool signifies whether the content fields should be |
24 // sent with the outgoing data. | 23 // sent with the outgoing data. |
25 bool send_content; | 24 bool send_content; |
26 // Content values. | 25 // Content values. |
27 std::string service_specific_data; | 26 std::string service_specific_data; |
28 int priority; | 27 int priority; |
29 bool require_subscription; | 28 bool require_subscription; |
30 bool write_to_cache_only; | 29 bool write_to_cache_only; |
31 }; | 30 }; |
32 | 31 |
33 #endif // JINGLE_NOTIFIER_LISTENER_NOTIFICATION_DEFINES_H_ | 32 #endif // JINGLE_NOTIFIER_LISTENER_NOTIFICATION_DEFINES_H_ |
34 | 33 |
OLD | NEW |