| OLD | NEW |
| 1 // Copyright 2013 The Chromium Authors. All rights reserved. | 1 // Copyright 2013 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 [ | 5 [ |
| 6 { | 6 { |
| 7 "namespace": "gcm", | 7 "namespace": "gcm", |
| 8 "description": "Use <code>chrome.gcm</code> to enable apps and extensions to
send and receive messages through the <a href='http://developer.android.com/goo
gle/gcm/'>Google Cloud Messaging Service</a>.", | 8 "description": "Use <code>chrome.gcm</code> to enable apps and extensions to
send and receive messages through the <a href='http://developer.android.com/goo
gle/gcm/'>Google Cloud Messaging Service</a>.", |
| 9 "properties": { | 9 "properties": { |
| 10 "MAX_MESSAGE_SIZE": { | 10 "MAX_MESSAGE_SIZE": { |
| (...skipping 61 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 72 "description": "The ID of the server to send the message to as a
ssigned by <a href='https://code.google.com/apis/console'>Google API Console</a>
." | 72 "description": "The ID of the server to send the message to as a
ssigned by <a href='https://code.google.com/apis/console'>Google API Console</a>
." |
| 73 }, | 73 }, |
| 74 "messageId": { | 74 "messageId": { |
| 75 "type": "string", | 75 "type": "string", |
| 76 "minLength": 1, | 76 "minLength": 1, |
| 77 "description": "The ID of the message. It must be unique for eac
h message in scope of the applications. See the <a href='cloudMessaging#send_mes
sages'>Cloud Messaging documentation</a> for advice for picking and handling an
ID." | 77 "description": "The ID of the message. It must be unique for eac
h message in scope of the applications. See the <a href='cloudMessaging#send_mes
sages'>Cloud Messaging documentation</a> for advice for picking and handling an
ID." |
| 78 }, | 78 }, |
| 79 "timeToLive": { | 79 "timeToLive": { |
| 80 "type": "integer", | 80 "type": "integer", |
| 81 "minimum": 0, | 81 "minimum": 0, |
| 82 "maximum": 2419200, | 82 "maximum": 86400, |
| 83 "optional": true, | 83 "optional": true, |
| 84 "description": "Time-to-live of the message in seconds. If it is
not possible to send the message within that time, an onSendError event will be
raised. A time-to-live of 0 indicates that the message should be sent immediate
ly or fail if it's not possible. The maximum and a default value of time-to-live
is 2419200 seconds (4 weeks)." | 84 "description": "Time-to-live of the message in seconds. If it is
not possible to send the message within that time, an onSendError event will be
raised. A time-to-live of 0 indicates that the message should be sent immediate
ly or fail if it's not possible. The maximum and a default value of time-to-live
is 86400 seconds (1 day)." |
| 85 }, | 85 }, |
| 86 "data": { | 86 "data": { |
| 87 "type": "object", | 87 "type": "object", |
| 88 "properties": {}, | 88 "properties": {}, |
| 89 "additionalProperties": { | 89 "additionalProperties": { |
| 90 "type": "string", | 90 "type": "string", |
| 91 "minLength": 1 | 91 "minLength": 1 |
| 92 }, | 92 }, |
| 93 "description": "Message data to send to the server. Case-insensi
tive <code>goog.</code> and <code>google</code>, as well as case-sensitive <code
>collapse_key</code> are disallowed as key prefixes. Sum of all key/value pairs
should not exceed $(ref:gcm.MAX_MESSAGE_SIZE)." | 93 "description": "Message data to send to the server. Case-insensi
tive <code>goog.</code> and <code>google</code>, as well as case-sensitive <code
>collapse_key</code> are disallowed as key prefixes. Sum of all key/value pairs
should not exceed $(ref:gcm.MAX_MESSAGE_SIZE)." |
| 94 } | 94 } |
| (...skipping 75 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 170 "description": "Additional details related to the error, when av
ailable." | 170 "description": "Additional details related to the error, when av
ailable." |
| 171 } | 171 } |
| 172 }, | 172 }, |
| 173 "description": "An error that occured while trying to send the messa
ge either in Chrome or on the GCM server. Application can retry sending the mess
age with a reasonable backoff and possibly longer time-to-live." | 173 "description": "An error that occured while trying to send the messa
ge either in Chrome or on the GCM server. Application can retry sending the mess
age with a reasonable backoff and possibly longer time-to-live." |
| 174 } | 174 } |
| 175 ] | 175 ] |
| 176 } | 176 } |
| 177 ] | 177 ] |
| 178 } | 178 } |
| 179 ] | 179 ] |
| OLD | NEW |