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",
11 "name": "addEventListener",
13 "description": "Used internally to implement the special form of addListener for the webRequest events.",
15 {"type": "function", "name": "callback"},
17 "$ref": "webRequest.RequestFilter",
19 "description": "A set of filters that restricts the events that will be sent to this listener."
24 "name": "extraInfoSpec",
25 "description": "Array of extra information that should be passed to the listener function.",
28 "enum": ["requestHeaders", "responseHeaders", "blocking", "asyncBlocking", "requestBody"]
31 {"type": "string", "name": "eventName"},
32 {"type": "string", "name": "subEventName"},
33 {"type": "integer", "name": "webViewInstanceId"}
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",