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

Unified Diff: net/http/http_stream_parser.cc

Issue 1800003: Auto-format style pass over files. (Closed)
Patch Set: Remove trailing whitespace. Created 10 years, 8 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
« no previous file with comments | « net/http/http_response_headers_unittest.cc ('k') | net/http/http_transaction_unittest.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: net/http/http_stream_parser.cc
diff --git a/net/http/http_stream_parser.cc b/net/http/http_stream_parser.cc
index e0b18a9443e7ef49c9902a438d1a86cb9167ce0f..a7c22a377d1dfb9611fbcff6001b01f757f8d3ff 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) {
« no previous file with comments | « net/http/http_response_headers_unittest.cc ('k') | net/http/http_transaction_unittest.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698