| Index: chrome/common/extensions/api/extension_api.json
|
| ===================================================================
|
| --- chrome/common/extensions/api/extension_api.json (revision 31822)
|
| +++ chrome/common/extensions/api/extension_api.json (working copy)
|
| @@ -1,6 +1,7 @@
|
| [
|
| {
|
| "namespace": "extension",
|
| + "unprivileged": true,
|
| "types": [
|
| {
|
| "id": "MessageSender",
|
| @@ -42,6 +43,7 @@
|
| {
|
| "name": "connect",
|
| "type": "function",
|
| + "unprivileged": true,
|
| "description": "Attempts to connect to other listeners within the extension (listeners may be toolstrips or the extension's background page). This is primarily useful for content scripts connecting to their extension processes. Extensions may connect to content scripts embedded in tabs via <a href='broken'><var>chrome.tabs.connectToTab</var></a>.",
|
| "parameters": [
|
| {"type": "string", "name": "extensionId", "optional": true, "description": "The extension ID of the extension you want to connect to. If omitted, default is your own extension."},
|
| @@ -62,6 +64,7 @@
|
| {
|
| "name": "sendRequest",
|
| "type": "function",
|
| + "unprivileged": true,
|
| "description": "Sends a single request to other listeners within the extension. Similar to chrome.extension.connect, but only sends a single request with an optional response.",
|
| "parameters": [
|
| {"type": "string", "name": "extensionId", "optional": true, "description": "The extension ID of the extension you want to connect to. If omitted, default is your own extension."},
|
| @@ -83,6 +86,7 @@
|
| {
|
| "name": "getURL",
|
| "type": "function",
|
| + "unprivileged": true,
|
| "description": "Convert a relative path within an extension install directory to a fully-qualified URL.",
|
| "parameters": [
|
| {
|
| @@ -147,6 +151,7 @@
|
| {
|
| "name": "onConnect",
|
| "type": "function",
|
| + "unprivileged": true,
|
| "description": "Fired when a connection is made from either an extension process or a content script.",
|
| "parameters": [
|
| {"$ref": "Port", "name": "port"}
|
| @@ -163,6 +168,7 @@
|
| {
|
| "name": "onRequest",
|
| "type": "function",
|
| + "unprivileged": true,
|
| "description": "Fired when a request is sent from either an extension process or a content script.",
|
| "parameters": [
|
| {"name": "request", "type": "any", "description": "The request sent by the calling script."},
|
|
|