/external/chromium/net/base/ |
data_url_unittest.cc | 15 const char* mime_type; member in struct:__anon2352::ParseTestData 146 std::string mime_type; local 150 net::DataURL::Parse(GURL(tests[i].url), &mime_type, &charset, &data); 153 EXPECT_EQ(tests[i].mime_type, mime_type);
|
mime_sniffer_unittest.cc | 20 const char* mime_type; member in struct:SnifferTest 24 std::string mime_type; local 31 &mime_type); 32 EXPECT_EQ(tests[i].mime_type, mime_type); 41 std::string mime_type; local 43 mime_type_hint, &mime_type); 44 return mime_type; 48 std::string mime_type; local 57 net::SniffMimeType(buf, 0, url, type_hint, &mime_type); 371 std::string mime_type; local [all...] |
mime_util_unittest.cc | 17 const char* mime_type; member in struct:__anon2375 27 std::string mime_type; local 31 rv = net::GetMimeTypeFromExtension(tests[i].extension, &mime_type); 34 EXPECT_EQ(tests[i].mime_type, mime_type); 41 const char* mime_type; member in struct:__anon2376 52 std::string mime_type; local 57 &mime_type); 60 EXPECT_EQ(tests[i].mime_type, mime_type); [all...] |
filter.cc | 79 std::string mime_type; local 80 bool success = filter_context.GetMimeType(&mime_type); 81 DCHECK(success || mime_type.empty()); 85 if (LowerCaseEqualsASCII(mime_type, kApplicationXGzip) || 86 LowerCaseEqualsASCII(mime_type, kApplicationGzip) || 87 LowerCaseEqualsASCII(mime_type, kApplicationXGunzip)) 119 !net::IsSupportedMimeType(mime_type)) 186 if (StartsWithASCII(mime_type, kTextHtml, false)) {
|
mime_sniffer.cc | 116 const char* mime_type; member in struct:net::MagicNumber 122 #define MAGIC_NUMBER(mime_type, magic) \ 123 { (mime_type), (magic), sizeof(magic)-1, false }, 126 #define MAGIC_STRING(mime_type, magic) \ 127 { (mime_type), (magic), sizeof(magic)-1, true }, 248 result->assign(magic_entry->mime_type); 416 static bool IsUnknownMimeType(const std::string& mime_type) { 433 if (mime_type == kUnknownMimeTypes[i]) { 438 if (mime_type.find('/') == std::string::npos) { 484 bool ShouldSniffMimeType(const GURL& url, const std::string& mime_type) { [all...] |
mime_util.cc | 23 std::string* mime_type) const; 26 std::string* mime_type) const; 28 bool IsSupportedImageMimeType(const char* mime_type) const; 29 bool IsSupportedMediaMimeType(const char* mime_type) const; 30 bool IsSupportedNonImageMimeType(const char* mime_type) const; 31 bool IsSupportedJavascriptMimeType(const char* mime_type) const; 33 bool IsViewSourceMimeType(const char* mime_type) const; 35 bool IsSupportedMimeType(const std::string& mime_type) const; 38 const std::string &mime_type) const; 64 const char* mime_type; member in struct:net::MimeInfo 140 const char* mime_type; local [all...] |
/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...] |
xdgmimemagic.c | 67 const char *mime_type; member in struct:XdgMimeMagicMatch 148 if (ptr->mime_type) 149 free ((void *) ptr->mime_type); 287 match->mime_type = strdup (buffer); 664 const char *mime_type; local 669 mime_type = NULL; 675 mime_type = match->mime_type; 683 _xdg_mime_mime_type_equal (mime_types[n], match->mime_type)) 689 if (mime_type == NULL [all...] |
xdgmime.c | 468 const char *mime_type; local 475 mime_type = _xdg_mime_magic_lookup_data (global_magic, data, len, result_prio, NULL, 0); 477 if (mime_type) 478 return mime_type; 487 const char *mime_type; local 550 mime_type = _xdg_mime_magic_lookup_data (global_magic, data, bytes_read, NULL, 556 if (mime_type) 557 return mime_type; 565 const char *mime_type; local 572 if (_xdg_glob_hash_lookup_file_name (global_hash, file_name, &mime_type, 1) [all...] |
xdgmimecache.c | 402 const char *mime_type; local 421 mime_type = cache->buffer + mimetype_offset; 426 mime_types[n].mime = mime_type; 617 const char *mime_type; local 621 mime_type = NULL; 634 mime_type = match; 642 return mime_type; 666 const char *mime_type; local 722 mime_type = cache_get_mime_type_for_data (data, bytes_read, NULL, 728 return mime_type; 734 const char *mime_type; local [all...] |
/external/chromium/base/third_party/xdg_mime/ |
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...] |
xdgmimemagic.c | 67 const char *mime_type; member in struct:XdgMimeMagicMatch 148 if (ptr->mime_type) 149 free ((void *) ptr->mime_type); 287 match->mime_type = strdup (buffer); 664 const char *mime_type; local 669 mime_type = NULL; 675 mime_type = match->mime_type; 683 _xdg_mime_mime_type_equal (mime_types[n], match->mime_type)) 689 if (mime_type == NULL [all...] |
xdgmime.c | 468 const char *mime_type; local 475 mime_type = _xdg_mime_magic_lookup_data (global_magic, data, len, result_prio, NULL, 0); 477 if (mime_type) 478 return mime_type; 487 const char *mime_type; local 550 mime_type = _xdg_mime_magic_lookup_data (global_magic, data, bytes_read, NULL, 556 if (mime_type) 557 return mime_type; 565 const char *mime_type; local 572 if (_xdg_glob_hash_lookup_file_name (global_hash, file_name, &mime_type, 1) [all...] |
xdgmimecache.c | 404 const char *mime_type; local 423 mime_type = cache->buffer + mimetype_offset; 428 mime_types[n].mime = mime_type; 619 const char *mime_type; local 623 mime_type = NULL; 636 mime_type = match; 644 return mime_type; 668 const char *mime_type; local 724 mime_type = cache_get_mime_type_for_data (data, bytes_read, NULL, 730 return mime_type; 736 const char *mime_type; local [all...] |
/external/webkit/WebCore/platform/graphics/gtk/ |
DataSourceGStreamer.cpp | 192 gchar* mime_type = 0; local 204 mime_type = mime_type_and_options[0];
|
/external/chromium/net/http/ |
http_response_headers_unittest.cc | 30 const string mime_type; member in struct:__anon2485::ContentTypeTestData 664 EXPECT_EQ(tests[i].mime_type, value); [all...] |
/external/chromium/net/proxy/ |
proxy_script_fetcher.cc | 35 // Returns true if |mime_type| is one of the known PAC mime type. 36 bool IsPacMimeType(const std::string& mime_type) { 42 if (LowerCaseEqualsASCII(mime_type, kSupportedPacMimeTypes[i])) 256 std::string mime_type; local 257 cur_request_->GetMimeType(&mime_type); 258 if (!IsPacMimeType(mime_type)) { 260 << mime_type;
|
/external/webkit/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);
|
/external/chromium/net/url_request/ |
url_request_unittest.cc | 919 std::string mime_type; local 920 req.GetMimeType(&mime_type); 921 EXPECT_EQ("text/html", mime_type); 1550 std::string mime_type; local [all...] |
/external/bluetooth/glib/gio/ |
gdesktopappinfo.c | 2661 char *mime_type; local [all...] |