Searched refs:magic_entry (Results 1 – 1 of 1) sorted by relevance
222 static bool MagicCmp(const char* magic_entry, const char* content, size_t len) { in MagicCmp() argument224 if ((*magic_entry != '.') && (*magic_entry != *content)) in MagicCmp()226 ++magic_entry; in MagicCmp()234 const MagicNumber* magic_entry, in MatchMagicNumber() argument236 const size_t len = magic_entry->magic_len; in MatchMagicNumber()250 if (magic_entry->is_string) { in MatchMagicNumber()253 match = (base::strncasecmp(magic_entry->magic, content, len) == 0); in MatchMagicNumber()257 match = MagicCmp(magic_entry->magic, content, len); in MatchMagicNumber()261 result->assign(magic_entry->mime_type); in MatchMagicNumber()