summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorpayal.pandey <payal.pandey@samsung.com>2015-04-27 23:47:54 -0700
committerCommit bot <commit-bot@chromium.org>2015-04-28 06:47:59 +0000
commitfdae0200e90f6ca93fda8f992002b03629f75d15 (patch)
treee339fccef80c42be17239d8f461d25a1755923a3
parent2315eba248a850a4fc012a52c0a3f0065916d663 (diff)
downloadchromium_src-fdae0200e90f6ca93fda8f992002b03629f75d15.zip
chromium_src-fdae0200e90f6ca93fda8f992002b03629f75d15.tar.gz
chromium_src-fdae0200e90f6ca93fda8f992002b03629f75d15.tar.bz2
Use of base::StringPairs appropriately in server
Bescause base/strings/string_split.h defines: typedef std::vector<std::pair<std::string, std::string> > StringPairs; BUG=412250 Review URL: https://codereview.chromium.org/1093823005 Cr-Commit-Position: refs/heads/master@{#327241}
-rw-r--r--net/server/http_server_response_info.h4
1 files changed, 2 insertions, 2 deletions
diff --git a/net/server/http_server_response_info.h b/net/server/http_server_response_info.h
index bbb76d8..e583e0d 100644
--- a/net/server/http_server_response_info.h
+++ b/net/server/http_server_response_info.h
@@ -7,8 +7,8 @@
#include <string>
#include <utility>
-#include <vector>
+#include "base/strings/string_split.h"
#include "net/http/http_status_code.h"
namespace net {
@@ -37,7 +37,7 @@ class HttpServerResponseInfo {
const std::string& body() const;
private:
- typedef std::vector<std::pair<std::string, std::string> > Headers;
+ using Headers = base::StringPairs;
HttpStatusCode status_code_;
Headers headers_;