/external/chromium_org/net/base/ |
D | mime_util_unittest.cc | 89 TEST(MimeUtilTest, MatchesMimeType) { in TEST() argument 90 EXPECT_TRUE(MatchesMimeType("*", "video/x-mpeg")); in TEST() 91 EXPECT_TRUE(MatchesMimeType("video/*", "video/x-mpeg")); in TEST() 92 EXPECT_TRUE(MatchesMimeType("video/*", "video/*")); in TEST() 93 EXPECT_TRUE(MatchesMimeType("video/x-mpeg", "video/x-mpeg")); in TEST() 94 EXPECT_TRUE(MatchesMimeType("application/*+xml", in TEST() 96 EXPECT_TRUE(MatchesMimeType("application/*+xml", "application/+xml")); in TEST() 97 EXPECT_TRUE(MatchesMimeType("aaa*aaa", "aaaaaa")); in TEST() 98 EXPECT_TRUE(MatchesMimeType("*", std::string())); in TEST() 99 EXPECT_FALSE(MatchesMimeType("video/", "video/x-mpeg")); in TEST() [all …]
|
D | mime_util.h | 55 NET_EXPORT bool MatchesMimeType(const std::string& mime_type_pattern,
|
D | mime_util.cc | 69 bool MatchesMimeType(const std::string &mime_type_pattern, 577 bool MimeUtil::MatchesMimeType(const std::string& mime_type_pattern, in MatchesMimeType() function in net::MimeUtil 759 bool MatchesMimeType(const std::string& mime_type_pattern, in MatchesMimeType() function 761 return g_mime_util.Get().MatchesMimeType(mime_type_pattern, mime_type); in MatchesMimeType()
|
/external/chromium/net/base/ |
D | mime_util_unittest.cc | 73 TEST(MimeUtilTest, MatchesMimeType) { in TEST() argument 74 EXPECT_TRUE(MatchesMimeType("*", "video/x-mpeg")); in TEST() 75 EXPECT_TRUE(MatchesMimeType("video/*", "video/x-mpeg")); in TEST() 76 EXPECT_TRUE(MatchesMimeType("video/x-mpeg", "video/x-mpeg")); in TEST() 77 EXPECT_TRUE(MatchesMimeType("application/*+xml", in TEST() 79 EXPECT_TRUE(MatchesMimeType("application/*+xml", "application/+xml")); in TEST() 80 EXPECT_TRUE(MatchesMimeType("aaa*aaa", "aaaaaa")); in TEST() 81 EXPECT_FALSE(MatchesMimeType("video/", "video/x-mpeg")); in TEST() 82 EXPECT_FALSE(MatchesMimeType("", "video/x-mpeg")); in TEST() 83 EXPECT_FALSE(MatchesMimeType("", "")); in TEST() [all …]
|
D | mime_util.cc | 40 bool MatchesMimeType(const std::string &mime_type_pattern, 385 bool MimeUtil::MatchesMimeType(const std::string &mime_type_pattern, in MatchesMimeType() function in net::MimeUtil 517 bool MatchesMimeType(const std::string &mime_type_pattern, in MatchesMimeType() function 519 return g_mime_util.Get().MatchesMimeType(mime_type_pattern, mime_type); in MatchesMimeType()
|
D | mime_util.h | 48 bool MatchesMimeType(const std::string &mime_type_pattern,
|
/external/chromium_org/chrome/browser/download/ |
D | download_extensions.cc | 252 if (net::MatchesMimeType(kExecutableWhiteList[i], mime_type)) in IsExecutableMimeType() 256 if (net::MatchesMimeType(kExecutableBlackList[i], mime_type)) in IsExecutableMimeType() 260 return net::MatchesMimeType("application/*", mime_type); in IsExecutableMimeType()
|
/external/chromium/chrome/browser/download/ |
D | download_extensions.cc | 243 if (net::MatchesMimeType(kExecutableWhiteList[i], mime_type)) in IsExecutableMimeType() 247 if (net::MatchesMimeType(kExecutableBlackList[i], mime_type)) in IsExecutableMimeType() 251 return net::MatchesMimeType("application/*", mime_type); in IsExecutableMimeType()
|
/external/chromium_org/chrome/browser/chromeos/drive/ |
D | file_cache.cc | 428 if (net::MatchesMimeType("image/*", mime_type)) { in RecoverFilesFromCacheDirectory() 430 } else if (net::MatchesMimeType("video/*", mime_type)) { in RecoverFilesFromCacheDirectory() 432 } else if (net::MatchesMimeType("audio/*", mime_type)) { in RecoverFilesFromCacheDirectory()
|
/external/chromium_org/chrome/browser/extensions/api/file_handlers/ |
D | app_file_handler_util.cc | 61 if (net::MatchesMimeType(*type, mime_type)) in FileHandlerCanHandleFileWithMimeType()
|
/external/chromium_org/content/common/ |
D | plugin_list.cc | 376 if (net::MatchesMimeType(mime_info.mime_type, mime_type)) { in SupportsType()
|
/external/chromium_org/chrome/browser/predictors/ |
D | resource_prefetch_predictor.cc | 198 !net::MatchesMimeType("text/css", mime_type)) { in IsHandledSubresource() 248 else if (net::MatchesMimeType("text/css", mime_type)) in GetResourceTypeFromMimeType()
|