Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(262)

Unified Diff: chrome/common/extensions/api/streams_private.idl

Issue 281513003: Implement chrome.streamsPrivate.abort() extensions function (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 6 years, 7 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
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

Powered by Google App Engine
This is Rietveld 408576698