summaryrefslogtreecommitdiffstats
path: root/net/http
diff options
context:
space:
mode:
authorpkasting@chromium.org <pkasting@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2011-09-01 00:46:33 +0000
committerpkasting@chromium.org <pkasting@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2011-09-01 00:46:33 +0000
commitd643172a8573e7e75f325bec2125de8071bfd0fc (patch)
tree16d43bab4652624b87e1e7acfbecb63310a6e736 /net/http
parentf5e7e8e162433ab6e8223c8b3da4feb64abddc33 (diff)
downloadchromium_src-d643172a8573e7e75f325bec2125de8071bfd0fc.zip
chromium_src-d643172a8573e7e75f325bec2125de8071bfd0fc.tar.gz
chromium_src-d643172a8573e7e75f325bec2125de8071bfd0fc.tar.bz2
Reduce number of unnamed-type-template-args violations (mostly when passing values to DCHECK(), ASSERT_EQ(), etc.), generally by naming previously-anonymous enums. We've decided not to eliminate the warning entirely because doing so is only possible with tons of ugly static_cast<>()s in Mac code.
BUG=92247 TEST=Compiles Review URL: http://codereview.chromium.org/7605019 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@99086 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'net/http')
-rw-r--r--net/http/http_stream_parser.h6
1 files changed, 3 insertions, 3 deletions
diff --git a/net/http/http_stream_parser.h b/net/http/http_stream_parser.h
index 40a4a0a..8853728 100644
--- a/net/http/http_stream_parser.h
+++ b/net/http/http_stream_parser.h
@@ -94,16 +94,16 @@ class HttpStreamParser : public ChunkCallback {
// The number of bytes by which the header buffer is grown when it reaches
// capacity.
- enum { kHeaderBufInitialSize = 4096 };
+ static const int kHeaderBufInitialSize = 4 * 1024; // 4K
// |kMaxHeaderBufSize| is the number of bytes that the response headers can
// grow to. If the body start is not found within this range of the
// response, the transaction will fail with ERR_RESPONSE_HEADERS_TOO_BIG.
// Note: |kMaxHeaderBufSize| should be a multiple of |kHeaderBufInitialSize|.
- enum { kMaxHeaderBufSize = 256 * 1024 }; // 256 kilobytes.
+ static const int kMaxHeaderBufSize = kHeaderBufInitialSize * 64; // 256K
// The maximum sane buffer size.
- enum { kMaxBufSize = 2 * 1024 * 1024 }; // 2 megabytes.
+ static const int kMaxBufSize = 2 * 1024 * 1024; // 2M
// Handle callbacks.
void OnIOComplete(int result);