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

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: 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..79130cb6d2cc14f80c93dbf4ebae6f06373c6e86 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);
+ // Flush contents buffered in the stream to the corresponding reader.
tyoshino (SeeGerritForStatus) 2014/11/26 05:59:49 Flushes
horo 2014/11/26 06:06:29 Done.
+ 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