Chromium Code Reviews| Index: chrome/common/extensions/api/experimental_push_messaging.idl |
| diff --git a/chrome/common/extensions/api/experimental_push_messaging.idl b/chrome/common/extensions/api/experimental_push_messaging.idl |
| index 1a27433dfbbc5d75b3cc838dc7f3fd98261b8d1c..4ee64ecfe91d5d9f628537ca2d889337ead74715 100644 |
| --- a/chrome/common/extensions/api/experimental_push_messaging.idl |
| +++ b/chrome/common/extensions/api/experimental_push_messaging.idl |
| @@ -13,6 +13,23 @@ |
| DOMString payload; |
| }; |
| + dictionary ChannelIdResult { |
| + // The subchannel the message was sent on. |
|
Mihai Parparita -not on Chrome
2012/08/22 21:40:45
This comment needs to be updated.
Also, APIs gene
Pete Williamson
2012/08/23 17:20:50
Done.
|
| + long status; |
| + |
| + // The payload associated with the message, if any. |
|
Mihai Parparita -not on Chrome
2012/08/22 21:40:45
This comment needs to be updated.
Pete Williamson
2012/08/23 17:20:50
Done.
|
| + DOMString channelId; |
| + }; |
| + |
| + callback ChannelIdCallback = void (ChannelIdResult channelId); |
| + |
| + interface Functions { |
| + // Retrieves the channel ID associated with this extension. Typically, an |
| + // extension will want to send this value to its application server so the |
| + // server can use it to trigger push messages back to the extension. |
| + static void getChannelId(ChannelIdCallback callback); |
| + }; |
| + |
| interface Events { |
| // Fired when a push message has been received. |
| // |message| : The details associated with the message. |