Lines Matching refs:magic
108 // The number of content bytes we need to use all our magic numbers. Feel free
109 // to increase this number if you add a longer magic number.
114 const char* magic;
119 #define MAGIC_NUMBER(mime_type, magic) \
120 { (mime_type), (magic), sizeof(magic)-1, false },
122 // Magic strings are case insensitive and must not include '\0' characters
123 #define MAGIC_STRING(mime_type, magic) \
124 { (mime_type), (magic), sizeof(magic)-1, true },
165 // Including these magic number for Flash is a trade off.
220 // Compare content header to a magic number where magic_entry can contain '.'
241 // To compare with magic strings, we need to compute strlen(content), but
253 match = (base::strncasecmp(magic_entry->magic, content, len) == 0);
257 match = MagicCmp(magic_entry->magic, content, len);
268 const MagicNumber* magic, size_t magic_len,
272 if (MatchMagicNumber(content, size, &(magic[i]), result)) {
329 // Check our big table of Magic Numbers
531 // Technically, the crx magic number is just Cr24, but the bytes after that
536 // TODO(aa): If we ever have another magic number, we'll want to pass a
675 // We're not interested in sniffing for magic numbers when the type_hint
680 // Now we look in our large table of magic numbers to see if we can find
684 return true; // We've matched a magic number. No more content needed.