/external/chromium/chrome/browser/ui/webui/ |
shared_resources_data_source.cc | 80 std::string mime_type; local 81 net::GetMimeTypeFromFile(FilePath().AppendASCII(path), &mime_type); local 82 return mime_type;
|
/external/chromium/net/base/ |
data_url_unittest.cc | 15 const char* mime_type; member in struct:__anon3536::ParseTestData 143 std::string mime_type; local 147 net::DataURL::Parse(GURL(tests[i].url), &mime_type, &charset, &data); 150 EXPECT_EQ(tests[i].mime_type, mime_type);
|
platform_mime_util_linux.cc | 43 const char* mime_type; member in struct:net::MimeToExt 62 const std::string& mime_type, FilePath::StringType* ext) const { 67 if (mime_type_ext_map[x].mime_type == mime_type) {
|
mime_sniffer_unittest.cc | 17 const char* mime_type; member in struct:net::SnifferTest 21 std::string mime_type; local 28 &mime_type); 29 EXPECT_EQ(tests[i].mime_type, mime_type); 38 std::string mime_type; local 40 mime_type_hint, &mime_type); 41 return mime_type; 45 std::string mime_type; local 54 SniffMimeType(buf, 0, url, type_hint, &mime_type); 371 std::string mime_type; local 387 std::string mime_type; local [all...] |
mime_util_unittest.cc | 14 const char* mime_type; member in struct:net::__anon3564 24 std::string mime_type; local 28 rv = GetMimeTypeFromExtension(tests[i].extension, &mime_type); 31 EXPECT_EQ(tests[i].mime_type, mime_type); 38 const char* mime_type; member in struct:net::__anon3565 49 std::string mime_type; local 54 &mime_type); 57 EXPECT_EQ(tests[i].mime_type, mime_type); [all...] |
filter.cc | 163 std::string mime_type; local 164 bool success = filter_context.GetMimeType(&mime_type); 165 DCHECK(success || mime_type.empty()); 169 if (LowerCaseEqualsASCII(mime_type, kApplicationXGzip) || 170 LowerCaseEqualsASCII(mime_type, kApplicationGzip) || 171 LowerCaseEqualsASCII(mime_type, kApplicationXGunzip)) 203 !IsSupportedMimeType(mime_type)) 270 if (StartsWithASCII(mime_type, kTextHtml, false)) {
|
mime_sniffer.cc | 113 const char* mime_type; member in struct:net::MagicNumber 119 #define MAGIC_NUMBER(mime_type, magic) \ 120 { (mime_type), (magic), sizeof(magic)-1, false }, 123 #define MAGIC_STRING(mime_type, magic) \ 124 { (mime_type), (magic), sizeof(magic)-1, true }, 261 result->assign(magic_entry->mime_type); 487 static bool IsUnknownMimeType(const std::string& mime_type) { 505 if (mime_type == kUnknownMimeTypes[i]) { 510 if (mime_type.find('/') == std::string::npos) { 565 bool ShouldSniffMimeType(const GURL& url, const std::string& mime_type) { [all...] |
/external/chromium/chrome/browser/chromeos/ |
gview_request_interceptor.cc | 60 std::string mime_type; local 61 request->GetMimeType(&mime_type); 64 if (mime_type == kPdfMimeType) { 76 if (supported_mime_types_.count(mime_type) > 0) {
|
/external/chromium/chrome/browser/download/ |
download_util_unittest.cc | 38 const char* mime_type; member in struct:__anon2688::__anon2689 459 kGenerateFileNameTestCases[i].mime_type, 470 kGenerateFileNameTestCases[i].mime_type, 500 const char* mime_type; member in struct:__anon2688::__anon2690 576 download_util::GenerateSafeFileName(kSafeFilenameCases[i].mime_type, &path);
|
/external/chromium/webkit/glue/ |
simple_webmimeregistry_impl.cc | 32 const WebString& mime_type) { 33 if (!net::IsSupportedMimeType(ToASCIIOrEmpty(mime_type).c_str())) 39 const WebString& mime_type) { 40 if (!net::IsSupportedImageMimeType(ToASCIIOrEmpty(mime_type).c_str())) 46 const WebString& mime_type) { 47 if (!net::IsSupportedJavascriptMimeType(ToASCIIOrEmpty(mime_type).c_str())) 53 const WebString& mime_type, const WebString& codecs) { 55 if (!net::IsSupportedMediaMimeType(ToASCIIOrEmpty(mime_type).c_str())) 59 if (net::IsStrictMediaMimeType(ToASCIIOrEmpty(mime_type).c_str())) { 69 if (!net::IsSupportedStrictMediaMimeType(ToASCIIOrEmpty(mime_type).c_str() 96 std::string mime_type; local 98 WebStringToFilePathString(file_extension), &mime_type); local 104 std::string mime_type; local [all...] |
site_isolation_metrics.cc | 141 std::string mime_type = response.mimeType().utf8(); local 146 if (mime_type == "") 147 mime_type = "(NONE)"; 148 MimeTypeMap::iterator mime_type_iter = mime_type_map.find(mime_type); 167 if (mime_type == "text/html") { 171 } else if (mime_type == "text/xml" || 172 mime_type == "text/xsl" || 173 mime_type == "application/xml" || 174 mime_type == "application/xhtml+xml" || 175 mime_type == "application/rss+xml" | [all...] |
multipart_response_delegate.cc | 247 std::string mime_type; local 250 net::HttpUtil::ParseContentType(content_type, &mime_type, &charset, 253 response.setMIMEType(WebString::fromUTF8(mime_type));
|
webkitclient_impl.cc | 242 const webkit::npapi::WebPluginMimeType& mime_type = plugin.mime_types[j]; local 245 WebString::fromUTF8(mime_type.mime_type), mime_type.description); 247 for (size_t k = 0; k < mime_type.file_extensions.size(); ++k) { 249 UTF8ToUTF16(mime_type.file_extensions[k]));
|
/external/bluetooth/glib/gio/xdgmime/ |
xdgmimealias.c | 53 char *mime_type; member in struct:XdgAlias 85 free (list->aliases[i].mime_type); 108 key.mime_type = NULL; 113 return entry->mime_type; 154 list->aliases[list->n_aliases].mime_type = strdup (sep); 179 list->aliases[i].mime_type);
|
xdgmimeicon.c | 51 char *mime_type; member in struct:XdgIcon 83 free (list->icons[i].mime_type); 94 return strcmp (((XdgIcon *)v1)->mime_type, ((XdgIcon *)v2)->mime_type); 99 const char *mime_type) 106 key.mime_type = (char *)mime_type; 152 list->icons[list->n_icons].mime_type = strdup (line); 177 list->icons[i].mime_type,
|
xdgmimeglob.c | 55 const char *mime_type; member in struct:XdgGlobHashNode 63 const char *mime_type; member in struct:XdgGlobList 102 if (ptr->mime_type) 103 free ((void *) ptr->mime_type); 113 const char *mime_type, 121 new_element->mime_type = mime_type; 157 if (glob_hash_node->mime_type) 158 printf (" - %s %d\n", glob_hash_node->mime_type, glob_hash_node->weight); 170 const char *mime_type, [all...] |
/external/chromium/chrome/browser/history/ |
download_create_info.h | 65 std::string mime_type; member in struct:DownloadCreateInfo 67 // may be different from |mime_type|, which may be set based on heuristics
|
/external/chromium/chrome/browser/ |
plugin_data_remover.cc | 172 std::string mime_type; local 174 GURL(), kFlashMimeType, allow_wildcard, &plugin, &mime_type)) {
|
file_select_helper.cc | 189 string16 mime_type = mime_types[i]; local 190 std::string ascii_mime_type = StringToLowerASCII(UTF16ToASCII(mime_type));
|
/external/chromium/net/proxy/ |
proxy_script_fetcher_impl.cc | 34 // Returns true if |mime_type| is one of the known PAC mime type. 35 bool IsPacMimeType(const std::string& mime_type) { 41 if (LowerCaseEqualsASCII(mime_type, kSupportedPacMimeTypes[i])) 129 std::string mime_type; local 132 if (!DataURL::Parse(url, &mime_type, &charset, &data)) 220 std::string mime_type; local 221 cur_request_->GetMimeType(&mime_type); 222 if (!IsPacMimeType(mime_type)) { 224 << mime_type;
|
/external/chromium/webkit/glue/media/ |
simple_data_source.cc | 290 std::string mime_type, charset; local 291 bool success = net::DataURL::Parse(url_, &mime_type, &charset, &data_);
|
/external/chromium/chrome/browser/ui/gtk/ |
dialogs_gtk.cc | 267 std::string mime_type = mime_util::GetFileMimeType( local 269 gtk_file_filter_add_mime_type(filter, mime_type.c_str()); 286 std::string mime_type = mime_util::GetFileMimeType( local 288 gtk_file_filter_set_name(filter, mime_type.c_str());
|
/external/chromium/chrome/browser/ui/views/tab_contents/ |
tab_contents_drag_win.cc | 189 string16 mime_type; local 193 &mime_type, 205 UTF16ToUTF8(mime_type),
|
/external/chromium/net/http/ |
http_response_headers_unittest.cc | 25 const std::string mime_type; member in struct:__anon3707::ContentTypeTestData 663 EXPECT_EQ(tests[i].mime_type, value); [all...] |
/external/webkit/Source/WebKit/gtk/tests/ |
testwebresource.c | 116 gchar* mime_type; local 117 g_object_get(G_OBJECT(fixture->webResource), "mime-type", &mime_type, NULL); 118 g_assert_cmpstr(mime_type, ==, "text/html"); 120 g_free(mime_type);
|