| 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..2707b0b845ec0438e76792daee291be3c6ee9266 100644
|
| --- a/chrome/common/extensions/api/webRequest.json
|
| +++ b/chrome/common/extensions/api/webRequest.json
|
| @@ -75,6 +75,33 @@
|
| }
|
| }
|
| }
|
| + },
|
| + {
|
| + "id": "RequestMatcher",
|
| + "type": "object",
|
| + "description": "Matches network events by various criteria",
|
| + "properties": {
|
| + "url": {
|
| + "type": "string",
|
| + "description": "Matches for a full URL",
|
| + "optional": true
|
| + },
|
| + "filter_type": { "type": "string", "enum": ["net.RequestMatcher"] }
|
| + }
|
| + },
|
| + {
|
| + "id": "CancelRequest",
|
| + "type": "object",
|
| + "properties": {
|
| + "action_type": { "type": "string", "enum": ["net.CancelRequest"] }
|
| + }
|
| + },
|
| + {
|
| + "id": "ModifyRequest",
|
| + "type": "object",
|
| + "properties": {
|
| + "action_type": { "type": "string", "enum": ["net.ModifyRequest"] }
|
| + }
|
| }
|
| ],
|
| "functions": [
|
| @@ -518,6 +545,32 @@
|
| "description": "A set of filters that restricts the events that will be sent to this listener."
|
| }
|
| ]
|
| + },
|
| + {
|
| + "name": "onRequest",
|
| + "options": {
|
| + "supports_listeners": false,
|
| + "supports_rules": true,
|
| + "conditions": {
|
| + "type": "array",
|
| + "items": {
|
| + "choices": [
|
| + { "$ref": "RequestMatcher" }
|
| + ]
|
| + },
|
| + "description": "List of conditions that can trigger the actions."
|
| + },
|
| + "actions": {
|
| + "type": "array",
|
| + "items": {
|
| + "choices": [
|
| + { "$ref": "CancelRequest" },
|
| + { "$ref": "ModifyRequest" }
|
| + ]
|
| + },
|
| + "description": "List of actions that are triggered if one of the condtions is fulfilled."
|
| + }
|
| + }
|
| }
|
| ]
|
| }
|
|
|