1 // Copyright (c) 2012 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.
5 #ifndef JINGLE_NOTIFIER_LISTENER_NOTIFICATION_DEFINES_H_
6 #define JINGLE_NOTIFIER_LISTENER_NOTIFICATION_DEFINES_H_
16 bool Equals(const Subscription
& other
) const;
18 // The name of the channel to subscribe to; usually but not always
21 // A sender, which could be a domain or a bare JID, from which we
22 // will accept pushes.
26 typedef std::vector
<Subscription
> SubscriptionList
;
28 bool SubscriptionListsEqual(const SubscriptionList
& subscriptions1
,
29 const SubscriptionList
& subscriptions2
);
31 // A structure representing a <recipient/> block within a push message.
35 bool Equals(const Recipient
& other
) const;
37 // The bare jid of the recipient.
39 // User-specific data for the recipient.
40 std::string user_specific_data
;
43 typedef std::vector
<Recipient
> RecipientList
;
45 bool RecipientListsEqual(const RecipientList
& recipients1
,
46 const RecipientList
& recipients2
);
52 // The channel the notification is coming in on.
54 // Recipients for this notification (may be empty).
55 RecipientList recipients
;
56 // The notification data payload.
59 bool Equals(const Notification
& other
) const;
60 std::string
ToString() const;
63 } // namespace notifier
65 #endif // JINGLE_NOTIFIER_LISTENER_NOTIFICATION_DEFINES_H_