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

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: Move MockWeakXmppClient from global namespace to anonymous namespace 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
« no previous file with comments | « jingle/notifier/base/fake_base_task.cc ('k') | jingle/notifier/listener/notification_defines.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: jingle/notifier/listener/notification_defines.h
===================================================================
--- jingle/notifier/listener/notification_defines.h (revision 119260)
+++ jingle/notifier/listener/notification_defines.h (working copy)
@@ -21,9 +21,24 @@
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 {
+ Notification();
+ ~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;
« no previous file with comments | « jingle/notifier/base/fake_base_task.cc ('k') | jingle/notifier/listener/notification_defines.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698