diff options
author | tfarina@chromium.org <tfarina@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2010-09-22 03:39:36 +0000 |
---|---|---|
committer | tfarina@chromium.org <tfarina@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2010-09-22 03:39:36 +0000 |
commit | 81854c44c38df32b69393186007d4fe7ebb6c471 (patch) | |
tree | f7c81816ac395bc37e6ea69aeb4b56cb9c7d3431 /net/http/http_response_body_drainer.h | |
parent | cf0ee14c47a74c365e45bfba00eb2024b2e83b4f (diff) | |
download | chromium_src-81854c44c38df32b69393186007d4fe7ebb6c471.zip chromium_src-81854c44c38df32b69393186007d4fe7ebb6c471.tar.gz chromium_src-81854c44c38df32b69393186007d4fe7ebb6c471.tar.bz2 |
net: Fix incorrect style used in some enumerations.
Reason: They are using kConstantNaming, however the Chromium style is to use
UPPER_CASE_FOR_ENUMS.
Also convert some truly constants, like the following:
http/http_proxy_client_socket_pool.h:
enum { kDrainBodyBufferSize = 1024 };
To:
static const int kDrainBodyBufferSize = 1024;
BUG=55668
TEST=compiles locally.
Review URL: http://codereview.chromium.org/3421026
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@60155 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'net/http/http_response_body_drainer.h')
-rw-r--r-- | net/http/http_response_body_drainer.h | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/net/http/http_response_body_drainer.h b/net/http/http_response_body_drainer.h index dbcdd99..16a4c88 100644 --- a/net/http/http_response_body_drainer.h +++ b/net/http/http_response_body_drainer.h @@ -23,8 +23,8 @@ class HttpResponseBodyDrainer { // we want to throw away. The response body is typically a small page just a // few hundred bytes long. We set a limit to prevent it from taking too long, // since we may as well just create a new socket then. - enum { kDrainBodyBufferSize = 16384 }; - enum { kTimeoutInSeconds = 5 }; + static const int kDrainBodyBufferSize = 16384; + static const int kTimeoutInSeconds = 5; explicit HttpResponseBodyDrainer(HttpStream* stream); |