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

Unified Diff: net/server/http_server_request_info.cc

Issue 992733002: Remove //net (except for Android test stuff) and sdch (Closed) Base URL: git@github.com:domokit/mojo.git@master
Patch Set: Created 5 years, 9 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
« no previous file with comments | « net/server/http_server_request_info.h ('k') | net/server/http_server_response_info.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: net/server/http_server_request_info.cc
diff --git a/net/server/http_server_request_info.cc b/net/server/http_server_request_info.cc
deleted file mode 100644
index 23729b210046e44bd56560f5536226bcb045f10f..0000000000000000000000000000000000000000
--- a/net/server/http_server_request_info.cc
+++ /dev/null
@@ -1,42 +0,0 @@
-// Copyright (c) 2011 The Chromium Authors. All rights reserved.
-// Use of this source code is governed by a BSD-style license that can be
-// found in the LICENSE file.
-
-#include "net/server/http_server_request_info.h"
-
-#include "base/strings/string_util.h"
-
-namespace net {
-
-HttpServerRequestInfo::HttpServerRequestInfo() {}
-
-HttpServerRequestInfo::~HttpServerRequestInfo() {}
-
-std::string HttpServerRequestInfo::GetHeaderValue(
- const std::string& header_name) const {
- DCHECK_EQ(base::StringToLowerASCII(header_name), header_name);
- HttpServerRequestInfo::HeadersMap::const_iterator it =
- headers.find(header_name);
- if (it != headers.end())
- return it->second;
- return std::string();
-}
-
-bool HttpServerRequestInfo::HasHeaderValue(
- const std::string& header_name,
- const std::string& header_value) const {
- DCHECK_EQ(base::StringToLowerASCII(header_value), header_value);
- std::string complete_value = GetHeaderValue(header_name);
- base::StringToLowerASCII(&complete_value);
- std::vector<std::string> value_items;
- Tokenize(complete_value, ",", &value_items);
- for (std::vector<std::string>::iterator it = value_items.begin();
- it != value_items.end(); ++it) {
- base::TrimString(*it, " \t", &*it);
- if (*it == header_value)
- return true;
- }
- return false;
-}
-
-} // namespace net
« no previous file with comments | « net/server/http_server_request_info.h ('k') | net/server/http_server_response_info.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698