summaryrefslogtreecommitdiff
path: root/content/content.h
diff options
context:
space:
mode:
authorJohn Mark Bell <jmb@netsurf-browser.org>2006-02-06 00:10:09 +0000
committerJohn Mark Bell <jmb@netsurf-browser.org>2006-02-06 00:10:09 +0000
commit0f228ada91a9460d1042b1a854fb1a0a32ed3f10 (patch)
treeb8279b6c948d3c5d5b3cb470434b2dc6c85fbca4 /content/content.h
parentc176e276e2de15a306872e3d4fa74193178eaadf (diff)
downloadnetsurf-0f228ada91a9460d1042b1a854fb1a0a32ed3f10.tar.gz
netsurf-0f228ada91a9460d1042b1a854fb1a0a32ed3f10.tar.bz2
[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
Diffstat (limited to 'content/content.h')
-rw-r--r--content/content.h3
1 files changed, 3 insertions, 0 deletions
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, ...);