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

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

Issue 800853006: Reject connection attempts without prompt if target app doesn't handle the event anyway. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: link to bug in comment Created 5 years, 12 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 [ 5 [
6 { 6 {
7 "namespace": "extension", 7 "namespace": "extension",
8 "description": "The <code>chrome.extension</code> API has utilities that can be used by any extension page. It includes support for exchanging messages betw een an extension and its content scripts or between extensions, as described in detail in <a href='messaging'>Message Passing</a>.", 8 "description": "The <code>chrome.extension</code> API has utilities that can be used by any extension page. It includes support for exchanging messages betw een an extension and its content scripts or between extensions, as described in detail in <a href='messaging'>Message Passing</a>.",
9 "compiler_options": { 9 "compiler_options": {
10 "implemented_in": "chrome/browser/extensions/api/module/module.h" 10 "implemented_in": "chrome/browser/extensions/api/module/module.h"
(...skipping 185 matching lines...) Expand 10 before | Expand all | Expand 10 after
196 "parameters": [ 196 "parameters": [
197 {"name": "request", "type": "any", "optional": true, "description": "T he request sent by the calling script."}, 197 {"name": "request", "type": "any", "optional": true, "description": "T he request sent by the calling script."},
198 {"name": "sender", "$ref": "runtime.MessageSender" }, 198 {"name": "sender", "$ref": "runtime.MessageSender" },
199 {"name": "sendResponse", "type": "function", "description": "Function to call (at most once) when you have a response. The argument should be any JSON -ifiable object, or undefined if there is no response. If you have more than one <code>onRequest</code> listener in the same document, then only one may send a response." } 199 {"name": "sendResponse", "type": "function", "description": "Function to call (at most once) when you have a response. The argument should be any JSON -ifiable object, or undefined if there is no response. If you have more than one <code>onRequest</code> listener in the same document, then only one may send a response." }
200 ] 200 ]
201 }, 201 },
202 { 202 {
203 "name": "onRequestExternal", 203 "name": "onRequestExternal",
204 "deprecated": "Please use $(ref:runtime.onMessageExternal).", 204 "deprecated": "Please use $(ref:runtime.onMessageExternal).",
205 "type": "function", 205 "type": "function",
206 "options": {
207 "unmanaged": true
208 },
209 "description": "Fired when a request is sent from another extension.", 206 "description": "Fired when a request is sent from another extension.",
210 "parameters": [ 207 "parameters": [
211 {"name": "request", "type": "any", "optional": true, "description": "T he request sent by the calling script."}, 208 {"name": "request", "type": "any", "optional": true, "description": "T he request sent by the calling script."},
212 {"name": "sender", "$ref": "runtime.MessageSender" }, 209 {"name": "sender", "$ref": "runtime.MessageSender" },
213 {"name": "sendResponse", "type": "function", "description": "Function to call when you have a response. The argument should be any JSON-ifiable object , or undefined if there is no response." } 210 {"name": "sendResponse", "type": "function", "description": "Function to call when you have a response. The argument should be any JSON-ifiable object , or undefined if there is no response." }
214 ] 211 ]
215 } 212 }
216 ] 213 ]
217 } 214 }
218 ] 215 ]
OLDNEW
« no previous file with comments | « chrome/browser/extensions/extension_messages_apitest.cc ('k') | extensions/common/api/runtime.json » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698