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

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

Issue 760823002: Introduce Stream::flush [2/2 chromium] (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: fix comments Created 6 years, 1 month 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.h
diff --git a/content/browser/streams/stream.h b/content/browser/streams/stream.h
index 7c938b87c47f8ce92a4a89fea718530cd047cb8f..27788b305a2f2d37d85d27de4f09d2228e1f5cdf 100644
--- a/content/browser/streams/stream.h
+++ b/content/browser/streams/stream.h
@@ -68,6 +68,9 @@ class CONTENT_EXPORT Stream : public base::RefCountedThreadSafe<Stream> {
// of the data, and then passes it to |writer_|.
void AddData(const char* data, size_t size);
+ // Flushes contents buffered in the stream to the corresponding reader.
+ void Flush();
+
// Notifies this stream that it will not be receiving any more data.
void Finalize();

Powered by Google App Engine
This is Rietveld 408576698