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

Unified Diff: net/http/http_chunked_decoder.h

Issue 2170133004: HttpChunkedDecoder: Support chunks longer than 2^31-1 bytes. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Missed two Created 4 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 | net/http/http_chunked_decoder.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: net/http/http_chunked_decoder.h
diff --git a/net/http/http_chunked_decoder.h b/net/http/http_chunked_decoder.h
index 87412deb102e9082f93cddf5633946485e1cca10..2ff55f9829115858ff66222326603165f420c0f0 100644
--- a/net/http/http_chunked_decoder.h
+++ b/net/http/http_chunked_decoder.h
@@ -46,6 +46,7 @@
#define NET_HTTP_HTTP_CHUNKED_DECODER_H_
#include <stddef.h>
+#include <stdint.h>
#include <string>
@@ -107,10 +108,10 @@ class NET_EXPORT_PRIVATE HttpChunkedDecoder {
// Converts string |start| of length |len| to a numeric value.
// |start| is a string of type "chunk-size" (hex string).
// If the conversion succeeds, returns true and places the result in |out|.
- static bool ParseChunkSize(const char* start, int len, int* out);
+ static bool ParseChunkSize(const char* start, int len, int64_t* out);
// Indicates the number of bytes remaining for the current chunk.
- int chunk_remaining_;
+ int64_t chunk_remaining_;
// A small buffer used to store a partial chunk marker.
std::string line_buf_;
« no previous file with comments | « no previous file | net/http/http_chunked_decoder.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698