OLD | NEW |
1 // Copyright 2015 The Chromium Authors. All rights reserved. | 1 // Copyright 2015 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 // Mime handler API. | 5 // Mime handler API. |
6 [nodoc] namespace mimeHandlerPrivate { | 6 [nodoc, use_movable_types=true] namespace mimeHandlerPrivate { |
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 |
(...skipping 15 matching lines...) Expand all Loading... |
32 callback GetStreamDetailsCallback = void (StreamInfo streamInfo); | 32 callback GetStreamDetailsCallback = void (StreamInfo streamInfo); |
33 | 33 |
34 interface Functions { | 34 interface Functions { |
35 // Returns the StreamInfo for the stream for this context if there is one. | 35 // Returns the StreamInfo for the stream for this context if there is one. |
36 [nocompile] static void getStreamInfo(GetStreamDetailsCallback callback); | 36 [nocompile] static void getStreamInfo(GetStreamDetailsCallback callback); |
37 | 37 |
38 // Aborts the stream for this context if there is one. | 38 // Aborts the stream for this context if there is one. |
39 [nocompile] static void abortStream(optional AbortCallback callback); | 39 [nocompile] static void abortStream(optional AbortCallback callback); |
40 }; | 40 }; |
41 }; | 41 }; |
OLD | NEW |