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",
10 "implemented_in": "extensions/browser/api/web_request/web_request_api.h"
14 "name": "addEventListener",
16 "description": "Used internally to implement the special form of addListener for the webRequest events.",
18 {"type": "function", "name": "callback"},
20 "$ref": "webRequest.RequestFilter",
22 "description": "A set of filters that restricts the events that will be sent to this listener."
27 "name": "extraInfoSpec",
28 "description": "Array of extra information that should be passed to the listener function.",
31 "enum": ["requestHeaders", "responseHeaders", "blocking", "asyncBlocking", "requestBody"]
34 {"type": "string", "name": "eventName"},
35 {"type": "string", "name": "subEventName"},
36 {"type": "integer", "name": "webViewInstanceId"}
40 "name": "eventHandled",
42 "description": "Used internally to send a response for a blocked event.",
44 {"type": "string", "name": "eventName"},
45 {"type": "string", "name": "subEventName"},
46 {"type": "string", "name": "requestId"},
48 "$ref": "webRequest.BlockingResponse",