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 "id": "AddEventListenerOptions",
16 "enum": ["requestHeaders", "responseHeaders", "blocking", "asyncBlocking", "requestBody"]
21 "name": "addEventListener",
23 "description": "Used internally to implement the special form of addListener for the webRequest events.",
25 {"type": "function", "name": "callback"},
27 "$ref": "webRequest.RequestFilter",
29 "description": "A set of filters that restricts the events that will be sent to this listener."
34 "name": "extraInfoSpec",
35 "description": "Array of extra information that should be passed to the listener function.",
37 "$ref": "AddEventListenerOptions"
40 {"type": "string", "name": "eventName"},
41 {"type": "string", "name": "subEventName"},
42 {"type": "integer", "name": "webViewInstanceId"}
46 "name": "eventHandled",
48 "description": "Used internally to send a response for a blocked event.",
50 {"type": "string", "name": "eventName"},
51 {"type": "string", "name": "subEventName"},
52 {"type": "string", "name": "requestId"},
54 "$ref": "webRequest.BlockingResponse",