| 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 [use_movable_types=true] 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 |
| (...skipping 31 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 48 }; | 48 }; |
| 49 | 49 |
| 50 interface Events { | 50 interface Events { |
| 51 // Fired when a resource is fetched which matches a mime type handled by | 51 // Fired when a resource is fetched which matches a mime type handled by |
| 52 // this extension. The resource request is cancelled, and the extension is | 52 // this extension. The resource request is cancelled, and the extension is |
| 53 // expected to handle the request. The event is restricted to a small number | 53 // expected to handle the request. The event is restricted to a small number |
| 54 // of white-listed extensions. | 54 // of white-listed extensions. |
| 55 static void onExecuteMimeTypeHandler(StreamInfo streamInfo); | 55 static void onExecuteMimeTypeHandler(StreamInfo streamInfo); |
| 56 }; | 56 }; |
| 57 }; | 57 }; |
| OLD | NEW |