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

Side by Side Diff: chrome/common/extensions/api/push_messaging.idl

Issue 476883003: Add deprecation message in chrome.pushMessaging API (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 6 years, 4 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
OLDNEW
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. 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 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 // Use <code>chrome.pushMessaging</code> to enable apps and extensions to 5 // The <code>chrome.pushMessaging</code> API is currently deprecated, and will
6 // receive message data sent through 6 // no longer be supported soon.
7 // Switch to <a href=gcm.html>chrome.gcm API</a> to take advantage of
not at google - send to devlin 2014/08/14 22:16:08 We actually have a [deprecated] annotation that ge
fgorski 2014/08/20 22:46:47 Done.
7 // <a href="cloudMessaging.html">Google Cloud Messaging</a>. 8 // <a href="cloudMessaging.html">Google Cloud Messaging</a>.
8 namespace pushMessaging { 9 namespace pushMessaging {
9 10
10 dictionary Message { 11 dictionary Message {
11 // The subchannel the message was sent on; 12 // The subchannel the message was sent on;
12 // only values 0-3 are valid. 13 // only values 0-3 are valid.
13 long subchannelId; 14 long subchannelId;
14 15
15 // The payload associated with the message, if any. This should not contain 16 // The payload associated with the message, if any. This should not contain
16 // any personally identifiable information. 17 // any personally identifiable information.
(...skipping 17 matching lines...) Expand all
34 static void getChannelId(optional boolean interactive, 35 static void getChannelId(optional boolean interactive,
35 ChannelIdCallback callback); 36 ChannelIdCallback callback);
36 }; 37 };
37 38
38 interface Events { 39 interface Events {
39 // Fired when a push message has been received. 40 // Fired when a push message has been received.
40 // |message| : The details associated with the message. 41 // |message| : The details associated with the message.
41 static void onMessage(Message message); 42 static void onMessage(Message message);
42 }; 43 };
43 }; 44 };
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698