Index: chrome/common/extensions/api/extension.json |
diff --git a/chrome/common/extensions/api/extension.json b/chrome/common/extensions/api/extension.json |
index 59f497c01768c2fde553925d4ada774a7a626b79..f089193751a288d817566b08b652822c60475278 100644 |
--- a/chrome/common/extensions/api/extension.json |
+++ b/chrome/common/extensions/api/extension.json |
@@ -6,7 +6,10 @@ |
{ |
"namespace": "extension", |
"nocompile": true, |
- "dependencies": [ "tabs" ], |
+ "uses_feature_system": true, |
+ "extension_types": ["extension", "packaged_app", "platform_app"], |
+ "contexts": ["blessed_extension", "unblessed_extension", "content_script"], |
+ "dependencies": ["api:tabs"], |
"types": [ |
{ |
"id": "MessageSender", |
@@ -51,7 +54,6 @@ |
"lastError": { |
"type": "object", |
"optional": true, |
- "unprivileged": true, |
"description": "Set for the lifetime of a callback if an ansychronous extension api has resulted in an error. If no error has occured lastError will be <var>undefined</var>.", |
"properties": { |
"message": { "type": "string", "description": "Description of the error that has taken place." } |
@@ -60,7 +62,6 @@ |
"inIncognitoContext": { |
"type": "boolean", |
"optional": true, |
- "unprivileged": true, |
"description": "True for content scripts running inside incognito tabs, and for extension pages running inside an incognito process. The latter only applies to extensions with 'split' incognito_behavior." |
} |
}, |
@@ -68,7 +69,6 @@ |
{ |
"name": "connect", |
"type": "function", |
- "unprivileged": true, |
"description": "Attempts to connect to other listeners within the extension (such as 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='tabs.html#method-connect'><code>chrome.tabs.connect()</code></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."}, |
@@ -91,7 +91,6 @@ |
"nodoc": true, |
"type": "function", |
"allowAmbiguousOptionalArguments": true, |
- "unprivileged": true, |
"description": "Deprecated: Please use sendMessage.", |
"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."}, |
@@ -114,7 +113,6 @@ |
"name": "sendMessage", |
"type": "function", |
"allowAmbiguousOptionalArguments": true, |
- "unprivileged": true, |
"description": "Sends a single message to other listeners within the extension. Similar to chrome.extension.connect, but only sends a single message with an optional response. The <a href='extension.html#event-onMessage'>chrome.extension.onMessage</a> event is fired in each page of the extension.", |
"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."}, |
@@ -136,7 +134,6 @@ |
{ |
"name": "getURL", |
"type": "function", |
- "unprivileged": true, |
"description": "Converts a relative path within an extension install directory to a fully-qualified URL.", |
"parameters": [ |
{ |
@@ -153,6 +150,7 @@ |
{ |
"name": "getViews", |
"type": "function", |
+ "contexts": ["blessed_extension"], |
"description": "Returns an array of the JavaScript 'window' objects for each of the pages running inside the current extension.", |
"parameters": [ |
{ |
@@ -182,6 +180,7 @@ |
}, |
{ |
"name": "getBackgroundPage", |
+ "contexts": ["blessed_extension"], |
"type": "function", |
"description": "Returns the JavaScript 'window' object for the background page running inside the current extension. Returns null if the extension has no background page.", |
"parameters": [], |
@@ -191,6 +190,7 @@ |
}, |
{ |
"name": "getExtensionTabs", |
+ "contexts": ["blessed_extension"], |
"nodoc": true, |
"type": "function", |
"maximumManifestVersion": 1, |
@@ -206,6 +206,7 @@ |
}, |
{ |
"name": "isAllowedIncognitoAccess", |
+ "contexts": ["blessed_extension"], |
"type": "function", |
"description": "Retrieves the state of the extension's access to Incognito-mode (as determined by the user-controlled 'Allowed in Incognito' checkbox.", |
"min_version": "12.0.706.0", |
@@ -225,6 +226,7 @@ |
}, |
{ |
"name": "isAllowedFileSchemeAccess", |
+ "contexts": ["blessed_extension"], |
"type": "function", |
"description": "Retrieves the state of the extension's access to the 'file://' scheme (as determined by the user-controlled 'Allow access to File URLs' checkbox.", |
"min_version": "12.0.706.0", |
@@ -244,6 +246,7 @@ |
}, |
{ |
"name": "setUpdateUrlData", |
+ "contexts": ["blessed_extension"], |
"type": "function", |
"description": "Sets the value of the ap CGI parameter used in the extension's update URL. This value is ignored for extensions that are hosted in the Chrome Extension Gallery.", |
"parameters": [ |
@@ -255,7 +258,6 @@ |
{ |
"name": "onConnect", |
"type": "function", |
- "unprivileged": true, |
"anonymous": true, |
"description": "Fired when a connection is made from either an extension process or a content script.", |
"parameters": [ |
@@ -264,6 +266,7 @@ |
}, |
{ |
"name": "onConnectExternal", |
+ "contexts": ["blessed_extension"], |
"type": "function", |
"anonymous": true, |
"description": "Fired when a connection is made from another extension.", |
@@ -276,7 +279,6 @@ |
"nodoc": true, |
"type": "function", |
"anonymous": true, |
- "unprivileged": true, |
"description": "Deprecated: please use onMessage.", |
"parameters": [ |
{"name": "request", "type": "any", "description": "The request sent by the calling script."}, |
@@ -286,6 +288,7 @@ |
}, |
{ |
"name": "onRequestExternal", |
+ "contexts": ["blessed_extension"], |
"nodoc": true, |
"type": "function", |
"anonymous": true, |
@@ -300,7 +303,6 @@ |
"name": "onMessage", |
"type": "function", |
"anonymous": true, |
- "unprivileged": true, |
"description": "Fired when a message is sent from either an extension process or a content script.", |
"parameters": [ |
{ |
@@ -321,6 +323,7 @@ |
}, |
{ |
"name": "onMessageExternal", |
+ "contexts": ["blessed_extension"], |
"type": "function", |
"anonymous": true, |
"description": "Fired when a message is sent from another extension.", |