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

Unified Diff: net/http/http_stream_parser.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/http/http_stream_parser.h
diff --git a/net/http/http_stream_parser.h b/net/http/http_stream_parser.h
index 34ec522ba1b2a3dcc8996b0953ee327d42050edc..b87beab733300dc51af56238cc2a845d17353b6f 100644
--- a/net/http/http_stream_parser.h
+++ b/net/http/http_stream_parser.h
@@ -91,6 +91,11 @@ class NET_EXPORT_PRIVATE HttpStreamParser : public ChunkCallback {
char* output,
size_t output_size);
+ // Returns true if request and body should be merged (i.e. the sum is
wtc 2012/01/24 19:08:04 Note: 'request' consists of 'request headers' and
+ // small enough and the body is in memory, and not chunked).
+ static bool ShouldMerge(const std::string& request,
wtc 2012/01/24 19:08:04 The 'request' parameter should be renamed 'request
satorux1 2012/01/24 19:25:42 I like the idea and chose the latter.
+ const UploadDataStream* request_body);
+
// The number of extra bytes required to encode a chunk.
static const size_t kChunkHeaderFooterSize;

Powered by Google App Engine
This is Rietveld 408576698