| OLD | NEW |
| (Empty) | |
| 1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. |
| 2 // Use of this source code is governed by a BSD-style license that can be |
| 3 // found in the LICENSE file. |
| 4 |
| 5 [ |
| 6 { |
| 7 "namespace": "webRequestInternal", |
| 8 "dependencies": ["webRequest"], |
| 9 "nodoc": true, |
| 10 "internal": true, |
| 11 "functions": [ |
| 12 { |
| 13 "name": "addEventListener", |
| 14 "type": "function", |
| 15 "description": "Used internally to implement the special form of addList
ener for the webRequest events.", |
| 16 "parameters": [ |
| 17 {"type": "function", "name": "callback"}, |
| 18 { |
| 19 "$ref": "webRequest.RequestFilter", |
| 20 "name": "filter", |
| 21 "description": "A set of filters that restricts the events that will
be sent to this listener." |
| 22 }, |
| 23 { |
| 24 "type": "array", |
| 25 "optional": true, |
| 26 "name": "extraInfoSpec", |
| 27 "description": "Array of extra information that should be passed to
the listener function.", |
| 28 "items": { |
| 29 "type": "string", |
| 30 "enum": ["requestHeaders", "responseHeaders", "blocking", "asyncBl
ocking", "requestBody"] |
| 31 } |
| 32 }, |
| 33 {"type": "string", "name": "eventName"}, |
| 34 {"type": "string", "name": "subEventName"} |
| 35 ] |
| 36 }, |
| 37 { |
| 38 "name": "eventHandled", |
| 39 "type": "function", |
| 40 "description": "Used internally to send a response for a blocked event."
, |
| 41 "parameters": [ |
| 42 {"type": "string", "name": "eventName"}, |
| 43 {"type": "string", "name": "subEventName"}, |
| 44 {"type": "string", "name": "requestId"}, |
| 45 { |
| 46 "$ref": "webRequest.BlockingResponse", |
| 47 "optional": true, |
| 48 "name": "response" |
| 49 } |
| 50 ] |
| 51 } |
| 52 ] |
| 53 } |
| 54 ] |
| OLD | NEW |