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/content.h | 9 ++++----- 1 file changed, 4 insertions(+), 5 deletions(-) (limited to 'content/content.h') diff --git a/content/content.h b/content/content.h index ef91135ee..b9af6c267 100644 --- a/content/content.h +++ b/content/content.h @@ -33,11 +33,10 @@ #include "content/content_type.h" #include "desktop/plot_style.h" -struct llcache_handle; - struct box; struct browser_window; struct content; +struct llcache_handle; struct hlcache_handle; struct object_params; @@ -63,6 +62,7 @@ typedef enum { CONTENT_MSG_REFORMAT, /**< content_reformat done */ CONTENT_MSG_REDRAW, /**< needs redraw (eg. new animation frame) */ CONTENT_MSG_REFRESH, /**< wants refresh */ + CONTENT_MSG_DOWNLOAD /**< download, not for display */ } content_msg; /** Extra data for some content_msg messages. */ @@ -82,6 +82,8 @@ union content_msg_data { float object_width, object_height; } redraw; int delay; /**< Minimum delay, for CONTENT_MSG_REFRESH */ + /** Low-level cache handle, for CONTENT_MSG_DOWNLOAD */ + struct llcache_handle *download; }; @@ -142,7 +144,4 @@ void content_invalidate_reuse_data(struct hlcache_handle *c); const char *content_get_refresh_url(struct hlcache_handle *c); struct bitmap *content_get_bitmap(struct hlcache_handle *c); -/* Download support */ -struct llcache_handle *content_convert_to_download(struct hlcache_handle *c); - #endif -- cgit v1.2.3