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

Unified Diff: content/public/browser/stream_handle.h

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: content/public/browser/stream_handle.h
diff --git a/content/public/browser/stream_handle.h b/content/public/browser/stream_handle.h
index b87402e543e3a130e2ec9bf18cdef1e11f244264..94591d7d41d320819277f298939030bd80844c1d 100644
--- a/content/public/browser/stream_handle.h
+++ b/content/public/browser/stream_handle.h
@@ -31,6 +31,9 @@ class CONTENT_EXPORT StreamHandle {
// Get the HTTP response headers associated with this Stream.
virtual scoped_refptr<net::HttpResponseHeaders> GetResponseHeaders() = 0;
+
+ // Add a callback which will be called when the Stream is closed.
+ virtual void AddCloseListener(const base::Closure& callback) = 0;
};
} // namespace content

Powered by Google App Engine
This is Rietveld 408576698