Lines Matching refs:content_type_str
80 void HttpUtil::ParseContentType(const std::string& content_type_str,
85 const std::string::const_iterator begin = content_type_str.begin();
90 size_t type_val = content_type_str.find_first_not_of(HTTP_LWS);
91 type_val = std::min(type_val, content_type_str.length());
92 size_t type_end = content_type_str.find_first_of(HTTP_LWS ";(", type_val);
94 type_end = content_type_str.length();
101 size_t param_start = content_type_str.find_first_of(';', type_end);
103 base::StringTokenizer tokenizer(begin + param_start, content_type_str.end(),
138 charset_val = content_type_str.find_first_not_of(HTTP_LWS, charset_val);
140 char first_char = content_type_str[charset_val];
142 charset_end = FindStringEnd(content_type_str, charset_val, first_char);
146 charset_end = std::min(content_type_str.find_first_of(HTTP_LWS ";(",
159 if (content_type_str.length() != 0 &&
160 content_type_str != "*/*" &&
161 content_type_str.find_first_of('/') != std::string::npos) {