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

Unified Diff: net/http/http_util.h

Issue 2624213002: net: remove AppendHeaderIfMissing() from HttpUtil (Closed)
Patch Set: Created 3 years, 11 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 | « no previous file | net/http/http_util.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: net/http/http_util.h
diff --git a/net/http/http_util.h b/net/http/http_util.h
index 1ccf9ccb73cd1acc7ae87173aabfcef1024dbe54..267b96400943335283e3c4e5883b4660e7c7e65c 100644
--- a/net/http/http_util.h
+++ b/net/http/http_util.h
@@ -74,11 +74,6 @@ class NET_EXPORT HttpUtil {
base::Time now,
base::TimeDelta* retry_after);
- // Scans the '\r\n'-delimited headers for the given header name. Returns
- // true if a match is found. Input is assumed to be well-formed.
- // TODO(darin): kill this
- static bool HasHeader(const std::string& headers, const char* name);
-
// Returns true if it is safe to allow users and scripts to specify the header
// named |name|.
static bool IsSafeHeader(const std::string& name);
@@ -210,12 +205,6 @@ class NET_EXPORT HttpUtil {
static std::string GenerateAcceptLanguageHeader(
const std::string& raw_language_list);
- // Helper. If |*headers| already contains |header_name| do nothing,
- // otherwise add <header_name> ": " <header_value> to the end of the list.
- static void AppendHeaderIfMissing(const char* header_name,
- const std::string& header_value,
- std::string* headers);
-
// Returns true if the parameters describe a response with a strong etag or
// last-modified header. See section 13.3.3 of RFC 2616.
// An empty string should be passed for missing headers.
« no previous file with comments | « no previous file | net/http/http_util.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698