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

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

Issue 9192029: Bindings layer for declarative events API (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Continued Created 8 years, 11 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": "webRequest", 3 "namespace": "webRequest",
4 "types": [ 4 "types": [
5 { 5 {
6 "id": "RequestFilter", 6 "id": "RequestFilter",
7 "type": "object", 7 "type": "object",
8 "description": "An object describing filters to apply to webRequest even ts.", 8 "description": "An object describing filters to apply to webRequest even ts.",
9 "properties": { 9 "properties": {
10 "urls": { 10 "urls": {
(...skipping 57 matching lines...) Expand 10 before | Expand all | Expand 10 after
68 "authCredentials": { 68 "authCredentials": {
69 "type": "object", 69 "type": "object",
70 "description": "Only used as a response to the onAuthRequired event. If set, the request is made using the supplied credentials.", 70 "description": "Only used as a response to the onAuthRequired event. If set, the request is made using the supplied credentials.",
71 "optional": true, 71 "optional": true,
72 "properties": { 72 "properties": {
73 "username": {"type": "string"}, 73 "username": {"type": "string"},
74 "password": {"type": "string"} 74 "password": {"type": "string"}
75 } 75 }
76 } 76 }
77 } 77 }
78 },
79 {
80 "id": "RequestMatcher",
81 "type": "object",
82 "description": "Matches network events by various criteria",
83 "properties": {
84 "url": {
85 "type": "string",
86 "description": "Matches for a full URL",
87 "optional": true
88 },
89 "filter_type": { "type": "string", "enum": ["net.RequestMatcher"] }
Matt Perry 2012/01/24 22:39:10 camelCase
battre 2012/01/25 19:25:08 Done.
90 }
91 },
92 {
93 "id": "CancelRequest",
94 "type": "object",
95 "properties": {
96 "action_type": { "type": "string", "enum": ["net.CancelRequest"] }
97 }
98 },
99 {
100 "id": "ModifyRequest",
101 "type": "object",
102 "properties": {
103 "action_type": { "type": "string", "enum": ["net.ModifyRequest"] }
104 }
78 } 105 }
79 ], 106 ],
80 "functions": [ 107 "functions": [
81 { 108 {
82 "name": "addEventListener", 109 "name": "addEventListener",
83 "nodoc": true, 110 "nodoc": true,
84 "type": "function", 111 "type": "function",
85 "description": "Used internally to implement the special form of addList ener for the webRequest events.", 112 "description": "Used internally to implement the special form of addList ener for the webRequest events.",
86 "parameters": [ 113 "parameters": [
87 {"type": "function", "name": "callback"}, 114 {"type": "function", "name": "callback"},
(...skipping 423 matching lines...) Expand 10 before | Expand all | Expand 10 after
511 } 538 }
512 } 539 }
513 ], 540 ],
514 "extraParameters": [ 541 "extraParameters": [
515 { 542 {
516 "$ref": "RequestFilter", 543 "$ref": "RequestFilter",
517 "name": "filter", 544 "name": "filter",
518 "description": "A set of filters that restricts the events that will be sent to this listener." 545 "description": "A set of filters that restricts the events that will be sent to this listener."
519 } 546 }
520 ] 547 ]
548 },
549 {
550 "name": "onRequest",
551 "options": {
552 "supportsListeners": false,
553 "supportsRules": true,
554 "conditions": ["RequestMatcher"],
555 "actions": ["CancelRequest", "ModifyRequest"]
556 }
521 } 557 }
522 ] 558 ]
523 } 559 }
524 ] 560 ]
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698