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", | |
113 "nodoc": true, | |
114 "type": "function", | |
115 "description": "Used internally to send a response for a blocked event."
, | |
116 "parameters": [ | |
117 {"type": "string", "name": "eventName"}, | |
118 {"type": "string", "name": "subEventName"}, | |
119 {"type": "string", "name": "requestId"}, | |
120 { | |
121 "$ref": "BlockingResponse", | |
122 "optional": true, | |
123 "name": "response" | |
124 } | |
125 ] | |
126 }, | |
127 { | |
128 "name": "handlerBehaviorChanged", | 86 "name": "handlerBehaviorChanged", |
129 "type": "function", | 87 "type": "function", |
130 "description": "Needs to be called when the behavior of the webRequest h
andlers has changed to prevent incorrect handling due to caching. This function
call is expensive. Don't call it often.", | 88 "description": "Needs to be called when the behavior of the webRequest h
andlers has changed to prevent incorrect handling due to caching. This function
call is expensive. Don't call it often.", |
131 "parameters": [ | 89 "parameters": [ |
132 {"type": "function", "name": "callback", "optional": true, "parameters
": []} | 90 {"type": "function", "name": "callback", "optional": true, "parameters
": []} |
133 ] | 91 ] |
134 } | 92 } |
135 ], | 93 ], |
136 "events": [ | 94 "events": [ |
137 { | 95 { |
(...skipping 381 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
519 { | 477 { |
520 "$ref": "RequestFilter", | 478 "$ref": "RequestFilter", |
521 "name": "filter", | 479 "name": "filter", |
522 "description": "A set of filters that restricts the events that will
be sent to this listener." | 480 "description": "A set of filters that restricts the events that will
be sent to this listener." |
523 } | 481 } |
524 ] | 482 ] |
525 } | 483 } |
526 ] | 484 ] |
527 } | 485 } |
528 ] | 486 ] |
OLD | NEW |