OLD | NEW |
---|---|
1 // Copyright 2014 The Chromium Authors. All rights reserved. | 1 // Copyright 2014 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 // Streams Private API. | 5 // Streams Private API. |
6 namespace streamsPrivate { | 6 namespace streamsPrivate { |
7 dictionary StreamInfo { | 7 dictionary StreamInfo { |
8 // The MIME type of the intercepted URL request. | 8 // The MIME type of the intercepted URL request. |
9 DOMString mimeType; | 9 DOMString mimeType; |
10 | 10 |
11 // The original URL that was intercepted. | 11 // The original URL that was intercepted. |
12 DOMString originalUrl; | 12 DOMString originalUrl; |
13 | 13 |
14 // The URL that the stream can be read from. | 14 // The URL that the stream can be read from. |
15 DOMString streamUrl; | 15 DOMString streamUrl; |
16 | 16 |
17 // The ID of the tab that opened the stream. If the stream is not opened in | 17 // The ID of the tab that opened the stream. If the stream is not opened in |
18 // a tab, it will be -1. | 18 // a tab, it will be -1. |
19 long tabId; | 19 long tabId; |
20 | 20 |
21 // The amount of data the Stream should contain, if known. If there is no | 21 // The amount of data the Stream should contain, if known. If there is no |
22 // information on the size it will be -1. | 22 // information on the size it will be -1. |
23 long expectedContentSize; | 23 long expectedContentSize; |
24 | |
25 // The HTTP response headers of the itercepted request. | |
Zachary Kuznia
2014/03/04 00:48:55
nit: intercepted
raymes
2014/03/05 02:57:47
Done.
| |
26 DOMString responseHeaders; | |
24 }; | 27 }; |
25 | 28 |
26 interface Events { | 29 interface Events { |
27 // Fired when a resource is fetched which matches a mime type handled by | 30 // Fired when a resource is fetched which matches a mime type handled by |
28 // this extension. The resource request is cancelled, and the extension is | 31 // this extension. The resource request is cancelled, and the extension is |
29 // expected to handle the request. The event is restricted to a small number | 32 // expected to handle the request. The event is restricted to a small number |
30 // of white-listed extensions. | 33 // of white-listed extensions. |
31 static void onExecuteMimeTypeHandler(StreamInfo streamInfo); | 34 static void onExecuteMimeTypeHandler(StreamInfo streamInfo); |
32 }; | 35 }; |
33 }; | 36 }; |
OLD | NEW |