From 0f228ada91a9460d1042b1a854fb1a0a32ed3f10 Mon Sep 17 00:00:00 2001 From: John Mark Bell Date: Mon, 6 Feb 2006 00:10:09 +0000 Subject: [project @ 2006-02-06 00:10:09 by jmb] Implement HTTP caching algorithm; this should avoid stale cache entries being used. svn path=/import/netsurf/; revision=2059 --- content/content.h | 3 +++ 1 file changed, 3 insertions(+) (limited to 'content/content.h') diff --git a/content/content.h b/content/content.h index 3e24ccbc0..7dbcdcb08 100644 --- a/content/content.h +++ b/content/content.h @@ -134,6 +134,7 @@ struct bitmap; struct box; struct browser_window; +struct cache_data; struct content; struct fetch; struct object_params; @@ -245,6 +246,7 @@ struct content { * was fetched using a simple GET, has not expired, and may be * shared between users. */ bool fresh; + struct cache_data *cache_data; /**< Cache control data */ unsigned int size; /**< Estimated size of all data associated with this content. */ @@ -285,6 +287,7 @@ extern const char *content_status_name[]; content_type content_lookup(const char *mime_type); struct content * content_create(const char *url); struct content * content_get(const char *url); +struct content * content_get_ready(const char *url); bool content_set_type(struct content *c, content_type type, const char *mime_type, const char *params[]); void content_set_status(struct content *c, const char *status_message, ...); -- cgit v1.2.3