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

Side by Side Diff: third_party/chrome/idl/push_messaging.idl

Issue 12261015: Import chrome idl into third_party (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Created 7 years, 10 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 unified diff | Download patch | Annotate | Revision Log
« no previous file with comments | « third_party/chrome/idl/proxy.json ('k') | third_party/chrome/idl/rtc_private.idl » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
(Empty)
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.
4
5 namespace pushMessaging{
6
7 dictionary Message {
8 // The subchannel the message was sent on;
9 // only values 0-3 are valid.
10 long subchannelId;
11
12 // The payload associated with the message, if any.
13 DOMString payload;
14 };
15
16 dictionary ChannelIdResult {
17 // The channel ID for this app to use for push messaging.
18 DOMString channelId;
19 };
20
21 callback ChannelIdCallback = void (ChannelIdResult channelId);
22
23 interface Functions {
24 // Retrieves the channel ID associated with this app or extension.
25 // Typically an app or extension will want to send this value
26 // to its application server so the server can use it
27 // to trigger push messages back to the app or extension.
28 // If the interactive flag is set, we will ask the user to log in
29 // when they are not already logged in.
30 static void getChannelId(optional boolean interactive,
31 ChannelIdCallback callback);
32 };
33
34 interface Events {
35 // Fired when a push message has been received.
36 // |message| : The details associated with the message.
37 static void onMessage(Message message);
38 };
39 };
OLDNEW
« no previous file with comments | « third_party/chrome/idl/proxy.json ('k') | third_party/chrome/idl/rtc_private.idl » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698