| 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 "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"] } |
| 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 Loading... |
| 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 "supports_listeners": false, |
| 553 "supports_rules": true, |
| 554 "conditions": { |
| 555 "type": "array", |
| 556 "items": { |
| 557 "choices": [ |
| 558 { "$ref": "RequestMatcher" } |
| 559 ] |
| 560 }, |
| 561 "description": "List of conditions that can trigger the actions." |
| 562 }, |
| 563 "actions": { |
| 564 "type": "array", |
| 565 "items": { |
| 566 "choices": [ |
| 567 { "$ref": "CancelRequest" }, |
| 568 { "$ref": "ModifyRequest" } |
| 569 ] |
| 570 }, |
| 571 "description": "List of actions that are triggered if one of the con
dtions is fulfilled." |
| 572 } |
| 573 } |
| 521 } | 574 } |
| 522 ] | 575 ] |
| 523 } | 576 } |
| 524 ] | 577 ] |
| OLD | NEW |