diff options
author | John Mark Bell <jmb@netsurf-browser.org> | 2012-02-08 00:52:16 +0000 |
---|---|---|
committer | John Mark Bell <jmb@netsurf-browser.org> | 2012-02-08 00:52:16 +0000 |
commit | 3e2e110a86f53b391fb2d6f20487e7510de4336c (patch) | |
tree | 415612e933ef6bfae7f61f2137e549d2b1333603 /content/mimesniff.h | |
parent | e2bb4aa4e01f0e3b6c4134081bd9a9bbcfe2e757 (diff) | |
download | netsurf-3e2e110a86f53b391fb2d6f20487e7510de4336c.tar.gz netsurf-3e2e110a86f53b391fb2d6f20487e7510de4336c.tar.bz2 |
Bypass full type sniffer if only images are acceptable
svn path=/trunk/netsurf/; revision=13436
Diffstat (limited to 'content/mimesniff.h')
-rw-r--r-- | content/mimesniff.h | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/content/mimesniff.h b/content/mimesniff.h index 331adc28c..bf3e493f3 100644 --- a/content/mimesniff.h +++ b/content/mimesniff.h @@ -38,6 +38,7 @@ struct llcache_handle; * \param data First data chunk, or NULL * \param len Length of \a data, in bytes * \param sniff_allowed Whether MIME type sniffing is allowed + * \param image_only Sniff image types only * \param effective_type Location to receive computed type * \return NSERROR_OK on success, * NSERROR_NEED_DATA iff \a data is NULL and data is needed @@ -46,7 +47,7 @@ struct llcache_handle; */ nserror mimesniff_compute_effective_type(struct llcache_handle *handle, const uint8_t *data, size_t len, bool sniff_allowed, - lwc_string **effective_type); + bool image_only, lwc_string **effective_type); nserror mimesniff_init(void); void mimesniff_fini(void); |