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

Side by Side Diff: net/server/http_server_request_info.cc

Issue 13145003: Rewrite std::string("") to std::string(), Linux edition. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Ugh Created 7 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 unified diff | Download patch | Annotate | Revision Log
« no previous file with comments | « net/server/http_server.cc ('k') | net/socket/client_socket_pool_base_unittest.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 namespace net { 7 namespace net {
8 8
9 HttpServerRequestInfo::HttpServerRequestInfo() {} 9 HttpServerRequestInfo::HttpServerRequestInfo() {}
10 10
11 HttpServerRequestInfo::~HttpServerRequestInfo() {} 11 HttpServerRequestInfo::~HttpServerRequestInfo() {}
12 12
13 std::string HttpServerRequestInfo::GetHeaderValue( 13 std::string HttpServerRequestInfo::GetHeaderValue(
14 const std::string& header_name) const { 14 const std::string& header_name) const {
15 HttpServerRequestInfo::HeadersMap::const_iterator it = 15 HttpServerRequestInfo::HeadersMap::const_iterator it =
16 headers.find(header_name); 16 headers.find(header_name);
17 if (it != headers.end()) 17 if (it != headers.end())
18 return it->second; 18 return it->second;
19 return ""; 19 return std::string();
20 } 20 }
21 21
22 } // namespace net 22 } // namespace net
OLDNEW
« no previous file with comments | « net/server/http_server.cc ('k') | net/socket/client_socket_pool_base_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698