Chromium Code Reviews| Index: chrome/common/extensions/api/webRequest.json |
| diff --git a/chrome/common/extensions/api/webRequest.json b/chrome/common/extensions/api/webRequest.json |
| index 40ac446a41c154acba74483af80fcc94d5eb823a..4afbc63c2044d5abdcf8b61e4abe4eab8931ba85 100644 |
| --- a/chrome/common/extensions/api/webRequest.json |
| +++ b/chrome/common/extensions/api/webRequest.json |
| @@ -75,6 +75,38 @@ |
| } |
| } |
| } |
| + }, |
| + { |
| + "nodoc": true, |
| + "id": "RequestMatcher", |
| + "type": "object", |
| + "description": "Matches network events by various criteria. Experimental junk, do not use!", |
| + "properties": { |
| + "url": { |
| + "type": "string", |
| + "description": "Matches for a full URL", |
| + "optional": true |
| + }, |
| + "filterType": { "type": "string", "enum": ["net.RequestMatcher"] } |
| + } |
| + }, |
| + { |
| + "nodoc": true, |
| + "id": "CancelRequest", |
| + "description": "Declarative event action that cancels a network request. Experimental junk, do not use!", |
| + "type": "object", |
| + "properties": { |
| + "actionType": { "type": "string", "enum": ["net.CancelRequest"] } |
| + } |
| + }, |
| + { |
| + "nodoc": true, |
| + "id": "ModifyRequest", |
| + "description": "Declarative event action that modifies a network request. Experimental junk, do not use!", |
| + "type": "object", |
| + "properties": { |
| + "actionType": { "type": "string", "enum": ["net.ModifyRequest"] } |
| + } |
| } |
| ], |
| "functions": [ |
| @@ -518,6 +550,15 @@ |
| "description": "A set of filters that restricts the events that will be sent to this listener." |
| } |
| ] |
| + }, |
| + { |
| + "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.
|
| + "options": { |
| + "supportsListeners": false, |
| + "supportsRules": true, |
| + "conditions": ["RequestMatcher"], |
| + "actions": ["CancelRequest", "ModifyRequest"] |
| + } |
| } |
| ] |
| } |