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

Unified Diff: content/browser/byte_stream.h

Issue 18098004: Add Flush() method to ByteStream. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Rebase Created 7 years, 5 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
« no previous file with comments | « no previous file | content/browser/byte_stream.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: content/browser/byte_stream.h
diff --git a/content/browser/byte_stream.h b/content/browser/byte_stream.h
index 49b76749051d180861a3de5deaf5417679ce1bcd..973e80573527bc5e90ee3fdf8d52310496821e04 100644
--- a/content/browser/byte_stream.h
+++ b/content/browser/byte_stream.h
@@ -134,6 +134,12 @@ public:
virtual bool Write(scoped_refptr<net::IOBuffer> buffer,
size_t byte_count) = 0;
+ // Flushes contents buffered in this writer to the corresponding reader
+ // regardless if buffer filling rate is greater than
+ // kFractionBufferBeforeSending or not. Does nothing if there's no contents
+ // buffered.
+ virtual void Flush() = 0;
+
// Signal that all data that is going to be sent, has been sent,
// and provide a status. |DOWNLOAD_INTERRUPT_REASON_NONE| should be
// passed for successful completion.
« no previous file with comments | « no previous file | content/browser/byte_stream.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698