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.
7 "namespace": "webRequestInternal",
12 "name": "addEventListener",
14 "description": "Used internally to implement the special form of addListener for the webRequest events.",
16 {"type": "function", "name": "callback"},
18 "$ref": "webRequest.RequestFilter",
20 "description": "A set of filters that restricts the events that will be sent to this listener."
25 "name": "extraInfoSpec",
26 "description": "Array of extra information that should be passed to the listener function.",
29 "enum": ["requestHeaders", "responseHeaders", "blocking", "asyncBlocking", "requestBody"]
32 {"type": "string", "name": "eventName"},
33 {"type": "string", "name": "subEventName"}
37 "name": "eventHandled",
39 "description": "Used internally to send a response for a blocked event.",
41 {"type": "string", "name": "eventName"},
42 {"type": "string", "name": "subEventName"},
43 {"type": "string", "name": "requestId"},
45 "$ref": "webRequest.BlockingResponse",