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

Unified Diff: net/base/upload_data_stream.h

Issue 9270030: net: Don't merge HTTP headers and body if the body is not in memory. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: fix win build Created 8 years, 11 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: net/base/upload_data_stream.h
diff --git a/net/base/upload_data_stream.h b/net/base/upload_data_stream.h
index a30850ab655b0d83f4f79b1094c32ac129c86259..e71cc686ec6b1dbcb37feea16487051a46127eb0 100644
--- a/net/base/upload_data_stream.h
+++ b/net/base/upload_data_stream.h
@@ -66,6 +66,9 @@ class NET_EXPORT UploadDataStream {
// returns true only after the data in buf() has been consumed.
bool IsOnLastChunk() const;
+ // Returns true if the upload data in the stream is entirely in memory.
+ bool IsInMemory() const;
+
// This method is provided only to be used by unit tests.
static void set_merge_chunks(bool merge) { merge_chunks_ = merge; }

Powered by Google App Engine
This is Rietveld 408576698