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

Unified Diff: net/http/http_basic_state.cc

Issue 266243004: Clang format slam. Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 6 years, 7 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
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, ' ');

Powered by Google App Engine
This is Rietveld 408576698