summaryrefslogtreecommitdiff
path: root/content/fetchcache.c
diff options
context:
space:
mode:
authorRichard Wilson <rjw@netsurf-browser.org>2005-02-03 13:18:22 +0000
committerRichard Wilson <rjw@netsurf-browser.org>2005-02-03 13:18:22 +0000
commit2affb76944a4cd83a2ff6722c3150abbb972f37d (patch)
treeb74bf45e17f25b59c941f592ea4685f326e82d01 /content/fetchcache.c
parent4a343579867c0659dedc8e4216d02d2c166eee07 (diff)
downloadnetsurf-2affb76944a4cd83a2ff6722c3150abbb972f37d.tar.gz
netsurf-2affb76944a4cd83a2ff6722c3150abbb972f37d.tar.bz2
[project @ 2005-02-03 13:18:22 by rjw]
Implementation of URL suggestion svn path=/import/netsurf/; revision=1488
Diffstat (limited to 'content/fetchcache.c')
-rw-r--r--content/fetchcache.c8
1 files changed, 7 insertions, 1 deletions
diff --git a/content/fetchcache.c b/content/fetchcache.c
index 327a32613..4714d8002 100644
--- a/content/fetchcache.c
+++ b/content/fetchcache.c
@@ -22,6 +22,7 @@
#include "netsurf/content/content.h"
#include "netsurf/content/fetchcache.h"
#include "netsurf/content/fetch.h"
+#include "netsurf/content/url_store.h"
#include "netsurf/utils/log.h"
#include "netsurf/utils/messages.h"
#include "netsurf/utils/url.h"
@@ -74,7 +75,7 @@ struct content * fetchcache(const char *url,
struct content *c;
char *url1;
char *hash;
-
+
if ((url1 = strdup(url)) == NULL)
return NULL;
@@ -210,6 +211,7 @@ void fetchcache_go(struct content *content, char *referer,
void fetchcache_callback(fetch_msg msg, void *p, const char *data,
unsigned long size)
{
+ struct url_content *url_content;
bool res;
struct content *c = p;
content_type type;
@@ -279,6 +281,10 @@ void fetchcache_callback(fetch_msg msg, void *p, const char *data,
break;
case FETCH_FINISHED:
+ url_content = url_store_find(c->url);
+ if (url_content)
+ url_content->requests++;
+
LOG(("FETCH_FINISHED"));
c->fetch = 0;
content_set_status(c, messages_get("Converting"),