Index: net/http/http_basic_state.cc |
diff --git a/net/http/http_basic_state.cc b/net/http/http_basic_state.cc |
index 2b173b0897b401d99bc890822dba8a161ec17502..b838ebb56d7100c6bcbb49bba9998fd832eed4f4 100644 |
--- a/net/http/http_basic_state.cc |
+++ b/net/http/http_basic_state.cc |
@@ -20,9 +20,11 @@ HttpBasicState::HttpBasicState(ClientSocketHandle* connection, bool using_proxy) |
: read_buf_(new GrowableIOBuffer()), |
connection_(connection), |
using_proxy_(using_proxy), |
- request_info_(NULL) {} |
+ request_info_(NULL) { |
+} |
-HttpBasicState::~HttpBasicState() {} |
+HttpBasicState::~HttpBasicState() { |
+} |
int HttpBasicState::Initialize(const HttpRequestInfo* request_info, |
RequestPriority priority, |
@@ -43,7 +45,9 @@ scoped_refptr<GrowableIOBuffer> HttpBasicState::read_buf() const { |
return read_buf_; |
} |
-void HttpBasicState::DeleteParser() { parser_.reset(); } |
+void HttpBasicState::DeleteParser() { |
+ parser_.reset(); |
+} |
std::string HttpBasicState::GenerateRequestLine() const { |
static const char kSuffix[] = " HTTP/1.1\r\n"; |
@@ -54,8 +58,8 @@ std::string HttpBasicState::GenerateRequestLine() const { |
: HttpUtil::PathForRequest(url); |
// Don't use StringPrintf for concatenation because it is very inefficient. |
std::string request_line; |
- const size_t expected_size = request_info_->method.size() + 1 + path.size() + |
- kSuffixLen; |
+ const size_t expected_size = |
+ request_info_->method.size() + 1 + path.size() + kSuffixLen; |
request_line.reserve(expected_size); |
request_line.append(request_info_->method); |
request_line.append(1, ' '); |