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

Unified Diff: content/browser/streams/stream_write_observer.h

Issue 12645004: Add Resource Handler for creating Streams to forward to extensions (Closed) Base URL: http://git.chromium.org/chromium/src.git@master
Patch Set: Make sure things are called on the right thread. Created 7 years, 9 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/browser/streams/stream_write_observer.h
diff --git a/content/browser/streams/stream_write_observer.h b/content/browser/streams/stream_write_observer.h
index 31d84cdef56a615216426f99b1311c4a1ea878e9..deab7ad009ef2cd7e00f155682b80d2d604192a0 100644
--- a/content/browser/streams/stream_write_observer.h
+++ b/content/browser/streams/stream_write_observer.h
@@ -15,6 +15,9 @@ class StreamWriteObserver {
// resume writing.
virtual void OnSpaceAvailable(Stream* stream) = 0;
+ // Sent when the stream is closed, and the writer should stop sending data.
+ virtual void OnClose(Stream* stream) = 0;
+
protected:
virtual ~StreamWriteObserver() {}
};

Powered by Google App Engine
This is Rietveld 408576698