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

Unified Diff: net/http/http_util.h

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_util.h
diff --git a/net/http/http_util.h b/net/http/http_util.h
index ae65146e6e4a42a21f673787d037f06330c9eb0b..09e4a3410c783d93bfe146464f36418bd8b09cdb 100644
--- a/net/http/http_util.h
+++ b/net/http/http_util.h
@@ -222,26 +222,14 @@ class NET_EXPORT HttpUtil {
// current position will be at the end of the headers.
bool AdvanceTo(const char* lowercase_name);
- void Reset() {
- lines_.Reset();
- }
+ void Reset() { lines_.Reset(); }
- std::string::const_iterator name_begin() const {
- return name_begin_;
- }
- std::string::const_iterator name_end() const {
- return name_end_;
- }
- std::string name() const {
- return std::string(name_begin_, name_end_);
- }
+ std::string::const_iterator name_begin() const { return name_begin_; }
+ std::string::const_iterator name_end() const { return name_end_; }
+ std::string name() const { return std::string(name_begin_, name_end_); }
- std::string::const_iterator values_begin() const {
- return values_begin_;
- }
- std::string::const_iterator values_end() const {
- return values_end_;
- }
+ std::string::const_iterator values_begin() const { return values_begin_; }
+ std::string::const_iterator values_end() const { return values_end_; }
std::string values() const {
return std::string(values_begin_, values_end_);
}
@@ -276,15 +264,9 @@ class NET_EXPORT HttpUtil {
// is a next value. Use value* methods to access the resultant value.
bool GetNext();
- std::string::const_iterator value_begin() const {
- return value_begin_;
- }
- std::string::const_iterator value_end() const {
- return value_end_;
- }
- std::string value() const {
- return std::string(value_begin_, value_end_);
- }
+ std::string::const_iterator value_begin() const { return value_begin_; }
+ std::string::const_iterator value_end() const { return value_end_; }
+ std::string value() const { return std::string(value_begin_, value_end_); }
private:
base::StringTokenizer values_;
@@ -327,13 +309,14 @@ class NET_EXPORT HttpUtil {
return value_is_quoted_ ? unquoted_value_.end() : value_end_;
}
std::string value() const {
- return value_is_quoted_ ? unquoted_value_ : std::string(value_begin_,
- value_end_);
+ return value_is_quoted_ ? unquoted_value_
+ : std::string(value_begin_, value_end_);
}
// The value before unquoting (if any).
- std::string raw_value() const { return std::string(value_begin_,
- value_end_); }
+ std::string raw_value() const {
+ return std::string(value_begin_, value_end_);
+ }
private:
HttpUtil::ValuesIterator props_;

Powered by Google App Engine
This is Rietveld 408576698