| OLD | NEW |
| 1 // Copyright (c) 2010 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2010 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 CHROME_COMMON_NET_NOTIFIER_LISTENER_NOTIFICATION_DEFINES_H_ | 5 #ifndef JINGLE_NOTIFIER_LISTENER_NOTIFICATION_DEFINES_H_ |
| 6 #define CHROME_COMMON_NET_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() : send_content(false), priority(0), |
| 17 require_subscription(false), | 17 require_subscription(false), |
| 18 write_to_cache_only(false) { | 18 write_to_cache_only(false) { |
| 19 } | 19 } |
| 20 // Id values | 20 // Id values |
| 21 std::string service_url; | 21 std::string service_url; |
| 22 std::string service_id; | 22 std::string service_id; |
| 23 // This bool signifies whether the content fields should be | 23 // This bool signifies whether the content fields should be |
| 24 // sent with the outgoing data. | 24 // sent with the outgoing data. |
| 25 bool send_content; | 25 bool send_content; |
| 26 // Content values. | 26 // Content values. |
| 27 std::string service_specific_data; | 27 std::string service_specific_data; |
| 28 int priority; | 28 int priority; |
| 29 bool require_subscription; | 29 bool require_subscription; |
| 30 bool write_to_cache_only; | 30 bool write_to_cache_only; |
| 31 }; | 31 }; |
| 32 | 32 |
| 33 #endif // CHROME_COMMON_NET_NOTIFIER_LISTENER_NOTIFICATION_DEFINES_H_ | 33 #endif // JINGLE_NOTIFIER_LISTENER_NOTIFICATION_DEFINES_H_ |
| 34 | 34 |
| OLD | NEW |