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

Side by Side Diff: chrome/common/extensions/api/gcm.json

Issue 141433030: [GCM] Updating the list of restricted keys for GCM API messages (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Addressing code reviews from jianli@ and kalman@, fixing a typo in error messages" Created 6 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
OLDNEW
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
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-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)."
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
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 ]
OLDNEW
« no previous file with comments | « chrome/browser/extensions/api/gcm/gcm_api.cc ('k') | chrome/renderer/resources/extensions/gcm_custom_bindings.js » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698