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

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

Issue 7508029: Add origin permissions to the extension permissions API. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: fix dcheck Created 9 years, 4 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 | Annotate | Revision Log
OLDNEW
1 [ 1 [
2 { 2 {
3 "namespace": "extension", 3 "namespace": "extension",
4 "unprivileged": true, 4 "unprivileged": true,
5 "types": [ 5 "types": [
6 { 6 {
7 "id": "MessageSender", 7 "id": "MessageSender",
8 "type": "object", 8 "type": "object",
9 "description": "An object containing information about the script contex t that sent a message or request.", 9 "description": "An object containing information about the script contex t that sent a message or request.",
10 "properties": { 10 "properties": {
(...skipping 1053 matching lines...) Expand 10 before | Expand all | Expand 10 after
1064 "types": [ 1064 "types": [
1065 { 1065 {
1066 "id": "Permissions", 1066 "id": "Permissions",
1067 "type": "object", 1067 "type": "object",
1068 "properties": { 1068 "properties": {
1069 "permissions": { 1069 "permissions": {
1070 "type": "array", 1070 "type": "array",
1071 "items": {"type": "string"}, 1071 "items": {"type": "string"},
1072 "optional": true, 1072 "optional": true,
1073 "description": "List of named permissions (does not include hosts or origins)." 1073 "description": "List of named permissions (does not include hosts or origins)."
1074 },
1075 "origins": {
1076 "type": "array",
1077 "items": {"type": "string"},
1078 "optional": true,
1079 "description": "List of origin permissions."
1074 } 1080 }
1075 } 1081 }
1076 } 1082 }
1077 ], 1083 ],
1078 "events": [ 1084 "events": [
1079 { 1085 {
1080 "name": "onAdded", 1086 "name": "onAdded",
1081 "type": "function", 1087 "type": "function",
1082 "unprivileged": true, 1088 "unprivileged": true,
1083 "description": "Fired when the extension acquires new permissions.", 1089 "description": "Fired when the extension acquires new permissions.",
(...skipping 6308 matching lines...) Expand 10 before | Expand all | Expand 10 after
7392 "description": "A string result code. The value is non-empty on success only in tests.", 7398 "description": "A string result code. The value is non-empty on success only in tests.",
7393 "optional": "true" 7399 "optional": "true"
7394 } 7400 }
7395 ] 7401 ]
7396 } 7402 }
7397 ] 7403 ]
7398 } 7404 }
7399 ] 7405 ]
7400 } 7406 }
7401 ] 7407 ]
OLDNEW
« no previous file with comments | « chrome/browser/extensions/permissions_apitest.cc ('k') | chrome/common/extensions/docs/experimental.permissions.html » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698