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

Unified Diff: net/http/http_stream_parser.h

Issue 7605019: Reduce number of unnamed-type-template-args violations. (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: '' Created 9 years, 4 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
===================================================================
--- net/http/http_stream_parser.h (revision 98480)
+++ net/http/http_stream_parser.h (working copy)
@@ -94,16 +94,16 @@
// The number of bytes by which the header buffer is grown when it reaches
// capacity.
- enum { kHeaderBufInitialSize = 4096 };
+ static const int kHeaderBufInitialSize;
// |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;
// The maximum sane buffer size.
- enum { kMaxBufSize = 2 * 1024 * 1024 }; // 2 megabytes.
+ static const int kMaxBufSize;
wtc 2011/08/26 21:20:53 Please initialize these static const members in th
Peter Kasting 2011/08/26 21:32:51 AFAIK this is not technically legal until C++11.
wtc 2011/08/26 22:30:50 To prepare myself for reviewing this CL, I consult
// Handle callbacks.
void OnIOComplete(int result);

Powered by Google App Engine
This is Rietveld 408576698