Lines Matching refs:mime_type
145 WebPluginMimeType mime_type;
146 mime_type.mime_type = StringToLowerASCII(mime_types[i]);
148 base::SplitString(file_extensions[i], ',', &mime_type.file_extensions);
151 mime_type.description = descriptions[i];
156 size_t ext = mime_type.description.find(base::ASCIIToUTF16("(*"));
158 if (ext > 1 && mime_type.description[ext - 1] == ' ')
161 mime_type.description.erase(ext);
165 parsed_mime_types->push_back(mime_type);
231 const std::string &mime_type = plugin_info->mime_types[i].mime_type;
232 if (mime_type == "*")
310 const std::string& mime_type,
316 DCHECK(mime_type == StringToLowerASCII(mime_type));
332 if (SupportsType(plugins_list_[i], mime_type, allow_wildcard)) {
337 actual_mime_types->push_back(mime_type);
350 if (last_dot != std::string::npos && mime_type.empty()) {
367 const std::string& mime_type,
370 if (mime_type.empty())
375 if (net::MatchesMimeType(mime_info.mime_type, mime_type)) {
376 if (!allow_wildcard && mime_info.mime_type == "*")
388 const WebPluginMimeType& mime_type = plugin.mime_types[i];
389 for (size_t j = 0; j < mime_type.file_extensions.size(); ++j) {
390 if (mime_type.file_extensions[j] == extension) {
392 *actual_mime_type = mime_type.mime_type;