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 <a href='http://developer.android.com/google/ gcm/index.html'>Google Cloud Messaging for Android</a>.", | 8 "description": "Use <code>chrome.gcm</code> to enable apps and extensions to send and receive messages through <a href='http://developer.android.com/google/ gcm/index.html'>Google Cloud Messaging for Android</a>.", |
9 "properties": { | 9 "properties": { |
10 "MAX_MESSAGE_SIZE": { | 10 "MAX_MESSAGE_SIZE": { |
(...skipping 59 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
70 "optional": true, | 70 "optional": true, |
71 "description": "Time-to-live of the message in seconds. If it is not possible to send the message wihtin that time an error will be raised. A ti me-to-live of 0 indicates that the message should be sent immediately or fail if it's not possible. The maximum and a default value of time-to-live is 2419200 s econds (4 weeks)." | 71 "description": "Time-to-live of the message in seconds. If it is not possible to send the message wihtin that time an error will be raised. A ti me-to-live of 0 indicates that the message should be sent immediately or fail if it's not possible. The maximum and a default value of time-to-live is 2419200 s econds (4 weeks)." |
72 }, | 72 }, |
73 "data": { | 73 "data": { |
74 "type": "object", | 74 "type": "object", |
75 "properties": {}, | 75 "properties": {}, |
76 "additionalProperties": { | 76 "additionalProperties": { |
77 "type": "string", | 77 "type": "string", |
78 "minLength": 1 | 78 "minLength": 1 |
79 }, | 79 }, |
80 "description": "Message data to send to the server. <code>goog.< /code> and <code>google</code> are disallowed as key prefixes. Sum of all key/va lue pairs should not exceed $(ref:gcm.MAX_MESSAGE_SIZE)." | 80 "description": "Message data to send to the server. Case-instens itive <code>goog.</code> and <code>google</code>, as well as case-sensitive <cod e>collapse_key</code> are disallowed as key prefixes. Sum of all key/value pairs should not exceed $(ref:gcm.MAX_MESSAGE_SIZE)." |
jianli
2014/02/12 01:30:32
typo
fgorski
2014/02/12 21:52:22
Done.
| |
81 } | 81 } |
82 } | 82 } |
83 }, | 83 }, |
84 { | 84 { |
85 "name": "callback", | 85 "name": "callback", |
86 "type": "function", | 86 "type": "function", |
87 "description": "A function called after the message is successfully queued for sending. $(ref:runtime.lastError) should be checked, to ensure a mess age was sent without problems.", | 87 "description": "A function called after the message is successfully queued for sending. $(ref:runtime.lastError) should be checked, to ensure a mess age was sent without problems.", |
88 "parameters": [ | 88 "parameters": [ |
89 { | 89 { |
90 "name": "messageId", | 90 "name": "messageId", |
(...skipping 61 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
152 "description": "Additional details related to the error, when av ailable." | 152 "description": "Additional details related to the error, when av ailable." |
153 } | 153 } |
154 }, | 154 }, |
155 "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." | 155 "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." |
156 } | 156 } |
157 ] | 157 ] |
158 } | 158 } |
159 ] | 159 ] |
160 } | 160 } |
161 ] | 161 ] |
OLD | NEW |