Home
last modified time | relevance | path

Searched refs:MatchesMimeType (Results 1 – 12 of 12) sorted by relevance

/external/chromium_org/net/base/
Dmime_util_unittest.cc89 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 …]
Dmime_util.h55 NET_EXPORT bool MatchesMimeType(const std::string& mime_type_pattern,
Dmime_util.cc69 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/
Dmime_util_unittest.cc73 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 …]
Dmime_util.cc40 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()
Dmime_util.h48 bool MatchesMimeType(const std::string &mime_type_pattern,
/external/chromium_org/chrome/browser/download/
Ddownload_extensions.cc252 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/
Ddownload_extensions.cc243 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/
Dfile_cache.cc428 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/
Dapp_file_handler_util.cc61 if (net::MatchesMimeType(*type, mime_type)) in FileHandlerCanHandleFileWithMimeType()
/external/chromium_org/content/common/
Dplugin_list.cc376 if (net::MatchesMimeType(mime_info.mime_type, mime_type)) { in SupportsType()
/external/chromium_org/chrome/browser/predictors/
Dresource_prefetch_predictor.cc198 !net::MatchesMimeType("text/css", mime_type)) { in IsHandledSubresource()
248 else if (net::MatchesMimeType("text/css", mime_type)) in GetResourceTypeFromMimeType()