Chromium Code Reviews| Index: chrome/common/extensions/api/streams_private.idl |
| diff --git a/chrome/common/extensions/api/streams_private.idl b/chrome/common/extensions/api/streams_private.idl |
| index 2d3badaa9a225760c474a66f5148ae817ce18ced..501b7ac29f9a534799559cf50c7e0495b36a49e6 100644 |
| --- a/chrome/common/extensions/api/streams_private.idl |
| +++ b/chrome/common/extensions/api/streams_private.idl |
| @@ -29,6 +29,17 @@ namespace streamsPrivate { |
| object responseHeaders; |
| }; |
| + callback AbortCallback = void (); |
| + |
| + interface Functions { |
| + // Abort the URL request on the given stream. |
| + // |streamUrl| : The URL of the stream to abort. |
| + // |callback| : Called when the stream URL is guaranteed to be invalid. The |
| + // underlying URL request may not yet have been aborted when this is run. |
| + static void abort(DOMString streamUrl, |
| + AbortCallback callback); |
|
not at google - send to devlin
2014/05/23 17:03:48
consider making this optional.
|
| + }; |
| + |
| interface Events { |
| // Fired when a resource is fetched which matches a mime type handled by |
| // this extension. The resource request is cancelled, and the extension is |