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

Unified Diff: net/http/http_util.h

Issue 2559243003: Extend with a language code in http accept languages
Patch Set: Rebased, fixed nits and handed over this CL :( Created 4 years 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/DEPS ('k') | 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 a0ee9bba79dfab0d366268deb740233e83f4e555..9166909a6e417e5fe4c51d5beca1286ef0a79959 100644
--- a/net/http/http_util.h
+++ b/net/http/http_util.h
@@ -211,23 +211,6 @@ class NET_EXPORT HttpUtil {
// consists of status line and then one line for each header.
static std::string ConvertHeadersBackToHTTPResponse(const std::string& str);
- // Given a comma separated ordered list of language codes, return
- // the list with a qvalue appended to each language.
- // The way qvalues are assigned is rather simple. The qvalue
- // starts with 1.0 and is decremented by 0.2 for each successive entry
- // in the list until it reaches 0.2. All the entries after that are
- // assigned the same qvalue of 0.2. Also, note that the 1st language
- // will not have a qvalue added because the absence of a qvalue implicitly
- // means q=1.0.
- //
- // When making a http request, this should be used to determine what
- // to put in Accept-Language header. If a comma separated list of language
- // codes *without* qvalue is sent, web servers regard all
- // of them as having q=1.0 and pick one of them even though it may not
- // be at the beginning of the list (see http://crbug.com/5899).
- 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,
« no previous file with comments | « net/DEPS ('k') | net/http/http_util.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698