Chromium Code Reviews| OLD | NEW |
|---|---|
| 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 Loading... | |
| 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 "nodoc": true, | |
| 81 "id": "RequestMatcher", | |
| 82 "type": "object", | |
| 83 "description": "Matches network events by various criteria. Experimental junk, do not use!", | |
| 84 "properties": { | |
| 85 "url": { | |
| 86 "type": "string", | |
| 87 "description": "Matches for a full URL", | |
| 88 "optional": true | |
| 89 }, | |
| 90 "filterType": { "type": "string", "enum": ["net.RequestMatcher"] } | |
| 91 } | |
| 92 }, | |
| 93 { | |
| 94 "nodoc": true, | |
| 95 "id": "CancelRequest", | |
| 96 "description": "Declarative event action that cancels a network request. Experimental junk, do not use!", | |
| 97 "type": "object", | |
| 98 "properties": { | |
| 99 "actionType": { "type": "string", "enum": ["net.CancelRequest"] } | |
| 100 } | |
| 101 }, | |
| 102 { | |
| 103 "nodoc": true, | |
| 104 "id": "ModifyRequest", | |
| 105 "description": "Declarative event action that modifies a network request . Experimental junk, do not use!", | |
| 106 "type": "object", | |
| 107 "properties": { | |
| 108 "actionType": { "type": "string", "enum": ["net.ModifyRequest"] } | |
| 109 } | |
| 78 } | 110 } |
| 79 ], | 111 ], |
| 80 "functions": [ | 112 "functions": [ |
| 81 { | 113 { |
| 82 "name": "addEventListener", | 114 "name": "addEventListener", |
| 83 "nodoc": true, | 115 "nodoc": true, |
| 84 "type": "function", | 116 "type": "function", |
| 85 "description": "Used internally to implement the special form of addList ener for the webRequest events.", | 117 "description": "Used internally to implement the special form of addList ener for the webRequest events.", |
| 86 "parameters": [ | 118 "parameters": [ |
| 87 {"type": "function", "name": "callback"}, | 119 {"type": "function", "name": "callback"}, |
| (...skipping 423 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 511 } | 543 } |
| 512 } | 544 } |
| 513 ], | 545 ], |
| 514 "extraParameters": [ | 546 "extraParameters": [ |
| 515 { | 547 { |
| 516 "$ref": "RequestFilter", | 548 "$ref": "RequestFilter", |
| 517 "name": "filter", | 549 "name": "filter", |
| 518 "description": "A set of filters that restricts the events that will be sent to this listener." | 550 "description": "A set of filters that restricts the events that will be sent to this listener." |
| 519 } | 551 } |
| 520 ] | 552 ] |
| 553 }, | |
| 554 { | |
| 555 "name": "onRequest", | |
|
not at google - send to devlin
2012/02/01 07:23:12
should be nodoc=true?
battre
2012/02/01 17:35:39
Done.
| |
| 556 "options": { | |
| 557 "supportsListeners": false, | |
| 558 "supportsRules": true, | |
| 559 "conditions": ["RequestMatcher"], | |
| 560 "actions": ["CancelRequest", "ModifyRequest"] | |
| 561 } | |
| 521 } | 562 } |
| 522 ] | 563 ] |
| 523 } | 564 } |
| 524 ] | 565 ] |
| OLD | NEW |