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

Unified Diff: net/test/embedded_test_server/http_request.h

Issue 935333002: Update from https://crrev.com/316786 (Closed) Base URL: git@github.com:domokit/mojo.git@master
Patch Set: Created 5 years, 10 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 | « net/ssl/ssl_config_service.cc ('k') | net/test/embedded_test_server/http_request.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: net/test/embedded_test_server/http_request.h
diff --git a/net/test/embedded_test_server/http_request.h b/net/test/embedded_test_server/http_request.h
index fcbf54cbdcff4d0d842cfd1a1b5b31e811b91339..3cd1ac7781d4cc84ddd59b10801e7a8f638bf1b2 100644
--- a/net/test/embedded_test_server/http_request.h
+++ b/net/test/embedded_test_server/http_request.h
@@ -13,6 +13,9 @@
#include "base/strings/string_piece.h"
namespace net {
+
+class HttpChunkedDecoder;
+
namespace test_server {
// Methods of HTTP requests supported by the test HTTP server.
@@ -93,7 +96,7 @@ class HttpRequestParser {
ParseResult ParseHeaders();
// Parses request's content data and returns ACCEPTED if all of it have been
- // processed. Chunked Transfer Encoding *is not* supported.
+ // processed. Chunked Transfer Encoding is supported.
ParseResult ParseContent();
// Fetches the next line from the buffer. Result does not contain \r\n.
@@ -108,6 +111,8 @@ class HttpRequestParser {
// Content length of the request currently being parsed.
size_t declared_content_length_;
+ scoped_ptr<net::HttpChunkedDecoder> chunked_decoder_;
+
DISALLOW_COPY_AND_ASSIGN(HttpRequestParser);
};
« no previous file with comments | « net/ssl/ssl_config_service.cc ('k') | net/test/embedded_test_server/http_request.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698