Chromium Code Reviews| 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); |