OLD | NEW |
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. | 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 | 2 // Use of this source code is governed by a BSD-style license that can be |
3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
4 | 4 |
5 [ | 5 [ |
6 { | 6 { |
7 "namespace": "webRequestInternal", | 7 "namespace": "webRequestInternal", |
8 "dependencies": ["webRequest"], | 8 "dependencies": ["webRequest"], |
9 "nodoc": true, | 9 "nodoc": true, |
10 "internal": true, | 10 "internal": true, |
(...skipping 13 matching lines...) Expand all Loading... |
24 "type": "array", | 24 "type": "array", |
25 "optional": true, | 25 "optional": true, |
26 "name": "extraInfoSpec", | 26 "name": "extraInfoSpec", |
27 "description": "Array of extra information that should be passed to
the listener function.", | 27 "description": "Array of extra information that should be passed to
the listener function.", |
28 "items": { | 28 "items": { |
29 "type": "string", | 29 "type": "string", |
30 "enum": ["requestHeaders", "responseHeaders", "blocking", "asyncBl
ocking", "requestBody"] | 30 "enum": ["requestHeaders", "responseHeaders", "blocking", "asyncBl
ocking", "requestBody"] |
31 } | 31 } |
32 }, | 32 }, |
33 {"type": "string", "name": "eventName"}, | 33 {"type": "string", "name": "eventName"}, |
34 {"type": "string", "name": "subEventName"} | 34 {"type": "string", "name": "subEventName"}, |
| 35 {"type": "integer", "name": "webViewInstanceId"} |
35 ] | 36 ] |
36 }, | 37 }, |
37 { | 38 { |
38 "name": "eventHandled", | 39 "name": "eventHandled", |
39 "type": "function", | 40 "type": "function", |
40 "description": "Used internally to send a response for a blocked event."
, | 41 "description": "Used internally to send a response for a blocked event."
, |
41 "parameters": [ | 42 "parameters": [ |
42 {"type": "string", "name": "eventName"}, | 43 {"type": "string", "name": "eventName"}, |
43 {"type": "string", "name": "subEventName"}, | 44 {"type": "string", "name": "subEventName"}, |
44 {"type": "string", "name": "requestId"}, | 45 {"type": "string", "name": "requestId"}, |
45 { | 46 { |
46 "$ref": "webRequest.BlockingResponse", | 47 "$ref": "webRequest.BlockingResponse", |
47 "optional": true, | 48 "optional": true, |
48 "name": "response" | 49 "name": "response" |
49 } | 50 } |
50 ] | 51 ] |
51 } | 52 } |
52 ] | 53 ] |
53 } | 54 } |
54 ] | 55 ] |
OLD | NEW |