Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(474)

Unified Diff: jingle/notifier/listener/notification_defines.h

Issue 9190029: use push messaging in cache invalidation xmpp channel (Closed) Base URL: http://src.chromium.org/svn/trunk/src/
Patch Set: Created 8 years, 11 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
Index: jingle/notifier/listener/notification_defines.h
===================================================================
--- jingle/notifier/listener/notification_defines.h (revision 117278)
+++ jingle/notifier/listener/notification_defines.h (working copy)
@@ -21,9 +21,21 @@
typedef std::vector<Subscription> SubscriptionList;
+// A structure representing a <recipient/> block within a push message.
+struct Recipient {
+ // The bare jid of the recipient.
+ std::string to;
+ // User-specific data for the recipient.
+ std::string user_specific_data;
+};
+
+typedef std::vector<Recipient> RecipientList;
+
struct Notification {
// The channel the notification is coming in on.
std::string channel;
+ // Recipients for this notification (may be empty).
+ RecipientList recipients;
// The notification data payload.
std::string data;

Powered by Google App Engine
This is Rietveld 408576698