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": "webRequest", | 7 "namespace": "webRequest", |
8 "types": [ | 8 "types": [ |
9 { | 9 { |
10 "id": "RequestFilter", | 10 "id": "RequestFilter", |
(...skipping 65 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
76 "properties": { | 76 "properties": { |
77 "username": {"type": "string"}, | 77 "username": {"type": "string"}, |
78 "password": {"type": "string"} | 78 "password": {"type": "string"} |
79 } | 79 } |
80 } | 80 } |
81 } | 81 } |
82 } | 82 } |
83 ], | 83 ], |
84 "functions": [ | 84 "functions": [ |
85 { | 85 { |
86 "name": "addEventListener", | |
87 "nodoc": true, | |
88 "type": "function", | |
89 "description": "Used internally to implement the special form of addList
ener for the webRequest events.", | |
90 "parameters": [ | |
91 {"type": "function", "name": "callback"}, | |
92 { | |
93 "$ref": "RequestFilter", | |
94 "name": "filter", | |
95 "description": "A set of filters that restricts the events that will
be sent to this listener." | |
96 }, | |
97 { | |
98 "type": "array", | |
99 "optional": true, | |
100 "name": "extraInfoSpec", | |
101 "description": "Array of extra information that should be passed to
the listener function.", | |
102 "items": { | |
103 "type": "string", | |
104 "enum": ["requestHeaders", "responseHeaders", "blocking", "asyncBl
ocking"] | |
105 } | |
106 }, | |
107 {"type": "string", "name": "eventName"}, | |
108 {"type": "string", "name": "subEventName"} | |
109 ] | |
110 }, | |
111 { | |
112 "name": "eventHandled", | 86 "name": "eventHandled", |
113 "nodoc": true, | 87 "nodoc": true, |
114 "type": "function", | 88 "type": "function", |
115 "description": "Used internally to send a response for a blocked event."
, | 89 "description": "Used internally to send a response for a blocked event."
, |
116 "parameters": [ | 90 "parameters": [ |
117 {"type": "string", "name": "eventName"}, | 91 {"type": "string", "name": "eventName"}, |
118 {"type": "string", "name": "subEventName"}, | 92 {"type": "string", "name": "subEventName"}, |
119 {"type": "string", "name": "requestId"}, | 93 {"type": "string", "name": "requestId"}, |
120 { | 94 { |
121 "$ref": "BlockingResponse", | 95 "$ref": "BlockingResponse", |
(...skipping 397 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
519 { | 493 { |
520 "$ref": "RequestFilter", | 494 "$ref": "RequestFilter", |
521 "name": "filter", | 495 "name": "filter", |
522 "description": "A set of filters that restricts the events that will
be sent to this listener." | 496 "description": "A set of filters that restricts the events that will
be sent to this listener." |
523 } | 497 } |
524 ] | 498 ] |
525 } | 499 } |
526 ] | 500 ] |
527 } | 501 } |
528 ] | 502 ] |
OLD | NEW |