diff options
author | cbentzel@chromium.org <cbentzel@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2010-05-04 15:36:11 +0000 |
---|---|---|
committer | cbentzel@chromium.org <cbentzel@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2010-05-04 15:36:11 +0000 |
commit | 2227c699c409af182b20d64fae135217d9ab6a24 (patch) | |
tree | 02181ac8440b73d460a67ce216ffef7bad85ff2c /net/http/http_stream_parser.cc | |
parent | 4f5c54c25a07c7ea62af278b8a455b539273b8e1 (diff) | |
download | chromium_src-2227c699c409af182b20d64fae135217d9ab6a24.zip chromium_src-2227c699c409af182b20d64fae135217d9ab6a24.tar.gz chromium_src-2227c699c409af182b20d64fae135217d9ab6a24.tar.bz2 |
Auto-format style pass over files.
This is a refactor (actually reformat) only - no behavior change in place.
BUG=NONE
TEST=net_unittests.exe
Review URL: http://codereview.chromium.org/1800003
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@46349 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'net/http/http_stream_parser.cc')
-rw-r--r-- | net/http/http_stream_parser.cc | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/net/http/http_stream_parser.cc b/net/http/http_stream_parser.cc index e0b18a9..a7c22a3 100644 --- a/net/http/http_stream_parser.cc +++ b/net/http/http_stream_parser.cc @@ -91,7 +91,7 @@ int HttpStreamParser::ReadResponseHeaders(CompletionCallback* callback) { } int HttpStreamParser::ReadResponseBody(IOBuffer* buf, int buf_len, - CompletionCallback* callback) { + CompletionCallback* callback) { DCHECK(io_state_ == STATE_BODY_PENDING || io_state_ == STATE_DONE); DCHECK(!user_callback_); DCHECK(callback); @@ -204,9 +204,9 @@ int HttpStreamParser::DoSendHeaders(int result) { if (request_body_ != NULL) { const size_t kBytesPerPacket = 1430; uint64 body_packets = (request_body_->size() + kBytesPerPacket - 1) / - kBytesPerPacket; + kBytesPerPacket; uint64 header_packets = (bytes_remaining + kBytesPerPacket - 1) / - kBytesPerPacket; + kBytesPerPacket; uint64 coalesced_packets = (request_body_->size() + bytes_remaining + kBytesPerPacket - 1) / kBytesPerPacket; if (coalesced_packets < header_packets + body_packets) { |