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
3 // found in the LICENSE file.
7 "namespace": "permissions",
8 "description": "Use the <code>chrome.permissions</code> API to request <a href='permissions#manifest'>declared optional permissions</a> at run time rather than install time, so users understand why the permissions are needed and grant only those that are necessary.",
16 "items": {"type": "string"},
18 "description": "List of named permissions (does not include hosts or origins). Anything listed here must appear in the <code>optional_permissions</code> list in the manifest."
22 "items": {"type": "string"},
24 "description": "List of origin permissions. Anything listed here must be a subset of a host that appears in the <code>optional_permissions</code> list in the manifest. For example, if <code>http://*.example.com/</code> or <code>http://*/</code> appears in <code>optional_permissions</code>, you can request an origin of <code>http://help.example.com/</code>. Any path is ignored."
33 "description": "Fired when the extension acquires new permissions.",
36 "$ref": "Permissions",
37 "name": "permissions",
38 "description": "The newly acquired permissions."
45 "description": "Fired when access to permissions has been removed from the extension.",
48 "$ref": "Permissions",
49 "name": "permissions",
50 "description": "The permissions that have been removed."
59 "description": "Gets the extension's current set of permissions.",
66 "name": "permissions",
67 "$ref": "Permissions",
68 "description": "The extension's active permissions."
77 "description": "Checks if the extension has the specified permissions.",
80 "name": "permissions",
90 "description": "True if the extension has the specified permissions."
99 "description": "Requests access to the specified permissions. These permissions must be defined in the optional_permissions field of the manifest. If there are any problems requesting the permissions, $(ref:runtime.lastError) will be set.",
102 "name": "permissions",
103 "$ref": "Permissions"
113 "description": "True if the user granted the specified permissions."
122 "description": "Removes access to the specified permissions. If there are any problems removing the permissions, $(ref:runtime.lastError) will be set.",
125 "name": "permissions",
126 "$ref": "Permissions"
136 "description": "True if the permissions were removed."