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

Side by Side Diff: net/server/http_server_request_info.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 unified diff | Download patch | Annotate | Revision Log
OLDNEW
1 // Copyright (c) 2011 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2011 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #include "net/server/http_server_request_info.h" 5 #include "net/server/http_server_request_info.h"
6 6
7 #include "base/strings/string_util.h" 7 #include "base/strings/string_util.h"
8 8
9 namespace net { 9 namespace net {
10 10
11 HttpServerRequestInfo::HttpServerRequestInfo() {} 11 HttpServerRequestInfo::HttpServerRequestInfo() {
12 }
12 13
13 HttpServerRequestInfo::~HttpServerRequestInfo() {} 14 HttpServerRequestInfo::~HttpServerRequestInfo() {
15 }
14 16
15 std::string HttpServerRequestInfo::GetHeaderValue( 17 std::string HttpServerRequestInfo::GetHeaderValue(
16 const std::string& header_name) const { 18 const std::string& header_name) const {
17 DCHECK_EQ(StringToLowerASCII(header_name), header_name); 19 DCHECK_EQ(StringToLowerASCII(header_name), header_name);
18 HttpServerRequestInfo::HeadersMap::const_iterator it = 20 HttpServerRequestInfo::HeadersMap::const_iterator it =
19 headers.find(header_name); 21 headers.find(header_name);
20 if (it != headers.end()) 22 if (it != headers.end())
21 return it->second; 23 return it->second;
22 return std::string(); 24 return std::string();
23 } 25 }
24 26
25 } // namespace net 27 } // namespace net
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698