diff options
author | Michael Drake <tlsa@netsurf-browser.org> | 2013-05-27 14:51:00 +0100 |
---|---|---|
committer | Michael Drake <tlsa@netsurf-browser.org> | 2013-05-27 14:51:00 +0100 |
commit | ba9769bc8c22c49fe1be6536d4684661ea2e079b (patch) | |
tree | c7a3355fb2d84bb21608dc85d12e8de4662eb787 /content/content.h | |
parent | 8dc7ec2cb48d74a6fd808f6989ec08771f4bb98f (diff) | |
download | netsurf-ba9769bc8c22c49fe1be6536d4684661ea2e079b.tar.gz netsurf-ba9769bc8c22c49fe1be6536d4684661ea2e079b.tar.bz2 |
Pass fetch redirect info up to content layer as content_msg. Mark redirect origin URLs as visited in browser window content callback. Note this doesn't mean we track redirects, it just lets us get the :visited link style on links that redirect.
Diffstat (limited to 'content/content.h')
-rw-r--r-- | content/content.h | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/content/content.h b/content/content.h index 3e5588815..467fa6055 100644 --- a/content/content.h +++ b/content/content.h @@ -69,6 +69,7 @@ typedef enum { CONTENT_MSG_DONE, /**< finished */ CONTENT_MSG_ERROR, /**< error occurred */ CONTENT_MSG_ERRORCODE, /**< error occurred return nserror */ + CONTENT_MSG_REDIRECT, /**< fetch url redirect occured */ CONTENT_MSG_STATUS, /**< new status string */ CONTENT_MSG_REFORMAT, /**< content_reformat done */ CONTENT_MSG_REDRAW, /**< needs redraw (eg. new animation frame) */ @@ -103,6 +104,11 @@ union content_msg_data { const char *error; /** CONTENT_MSG_ERRORCODE - Error code */ nserror errorcode; + /** CONTENT_MSG_REDIRECT - Redirect info */ + struct { + nsurl *from; /**< Redirect origin */ + nsurl *to; /**< Redirect target */ + } redirect; /**< Fetch URL redirect occured */ /** CONTENT_MSG_REDRAW - Area of content which needs redrawing */ struct { int x, y, width, height; |