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

Unified Diff: chrome/common/extensions/api/extension.json

Issue 10991044: Revert 158830 - Revert 156678 - Native messaging now uses the MessageService back-end. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src/
Patch Set: Created 8 years, 3 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « chrome/chrome_tests.gypi ('k') | chrome/common/extensions/extension_messages.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/common/extensions/api/extension.json
===================================================================
--- chrome/common/extensions/api/extension.json (revision 158832)
+++ chrome/common/extensions/api/extension.json (working copy)
@@ -75,6 +75,31 @@
}
},
{
+ "name": "connectNative",
+ "nodoc": true,
+ "type": "function",
+ "description": "Attempts to connect a native application in the host machine. The native application must have already registered itself in the proper directory.",
+ "parameters": [
+ {
+ "type": "string",
+ "name": "appName",
+ "description": "The name of the registered app to connect to."
+ },
+ {
+ "name": "connectionMessage",
+ "description": "The object that will be passed to the registered native app on connection.",
+ "type": "object",
+ "additionalProperties": {
+ "type": "any"
+ }
+ }
+ ],
+ "returns": {
+ "$ref": "Port",
+ "description": "Port through which messages can be sent and received with the application"
+ }
+ },
+ {
"name": "sendRequest",
"nodoc": true,
"type": "function",
@@ -122,6 +147,43 @@
]
},
{
+ "name": "sendNativeMessage",
+ "nodoc": true,
+ "type": "function",
+ "description": "Send a single message to a registered native application.",
+ "parameters": [
+ {
+ "name": "registeredNativeApp",
+ "description": "The name of the registered native application.",
+ "type": "string"
+ },
+ {
+ "name": "message",
+ "description": "The message that will be passed to the registered native application.",
+ "type": "object",
+ "additionalProperties": {
+ "type": "any"
+ }
+ },
+ {
+ "type": "function",
+ "name": "callback",
+ "optional": true,
+ "description": "Called with the response from the native application.",
+ "parameters": [
+ {
+ "name": "nativeResponse",
+ "type": "object",
+ "description": "Whatever the native application responds with.",
+ "additionalProperties": {
+ "type": "any"
+ }
+ }
+ ]
+ }
+ ]
+ },
+ {
"name": "getURL",
"type": "function",
"unprivileged": true,
« no previous file with comments | « chrome/chrome_tests.gypi ('k') | chrome/common/extensions/extension_messages.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698