From 2748fe4f6483f8cfb3c4f91a01e8d897b7d1ac47 Mon Sep 17 00:00:00 2001 From: John Mark Bell Date: Mon, 5 Apr 2010 21:35:38 +0000 Subject: Make downloads work again. svn path=/trunk/netsurf/; revision=10243 --- content/llcache.h | 15 ++++++++++++++- 1 file changed, 14 insertions(+), 1 deletion(-) (limited to 'content/llcache.h') diff --git a/content/llcache.h b/content/llcache.h index 434d0b641..3c965d3dc 100644 --- a/content/llcache.h +++ b/content/llcache.h @@ -82,6 +82,9 @@ typedef nserror (*llcache_handle_callback)(llcache_handle *handle, /** Flags for low-level cache object retrieval */ enum llcache_retrieve_flag { + /* Note: We're permitted a maximum of 16 flags which must reside in the + * bottom 16 bits of the flags word. See hlcache.h for further details. + */ /** Force a new fetch */ LLCACHE_RETRIEVE_FORCE_FETCH = (1 << 0), /** Requested URL was verified */ @@ -89,7 +92,9 @@ enum llcache_retrieve_flag { /** Permit content-type sniffing */ LLCACHE_RETRIEVE_SNIFF_TYPE = (1 << 2), /**< No error pages */ - LLCACHE_RETRIEVE_NO_ERROR_PAGES = (1 << 3) + LLCACHE_RETRIEVE_NO_ERROR_PAGES = (1 << 3), + /**< Stream data (implies that object is not cacheable) */ + LLCACHE_RETRIEVE_STREAM_DATA = (1 << 4) }; /** Low-level cache query types */ @@ -218,6 +223,14 @@ nserror llcache_handle_clone(llcache_handle *handle, llcache_handle **result); */ nserror llcache_handle_abort(llcache_handle *handle); +/** + * Force a low-level cache handle into streaming mode + * + * \param handle Handle to stream + * \return NSERROR_OK on success, appropriate error otherwise + */ +nserror llcache_handle_force_stream(llcache_handle *handle); + /** * Retrieve the post-redirect URL of a low-level cache object * -- cgit v1.2.3