summaryrefslogtreecommitdiff
path: root/src/web.hh
diff options
context:
space:
mode:
authorcorvid <corvid@lavabit.com>2010-04-06 02:27:54 +0000
committercorvid <corvid@lavabit.com>2010-04-06 02:27:54 +0000
commit6f3fa9135b34e14c5330cb563b136e915d91ecf9 (patch)
treec27e6bd8327c305e062e225ea1e5200c86425db6 /src/web.hh
parentd632e3c9d3a9fb6e3fd2dd7b28edca99012d7782 (diff)
filter automatic requests
same_domain option in preference so that spying on users isn't so easy.
Diffstat (limited to 'src/web.hh')
-rw-r--r--src/web.hh4
1 files changed, 3 insertions, 1 deletions
diff --git a/src/web.hh b/src/web.hh
index 2671c6ef..d017903a 100644
--- a/src/web.hh
+++ b/src/web.hh
@@ -22,6 +22,8 @@ typedef struct _DilloWeb DilloWeb;
struct _DilloWeb {
DilloUrl *url; /* Requested URL */
+ DilloUrl *requester; /* URL that caused this request, or
+ * NULL if user-initiated. */
BrowserWindow *bw; /* The requesting browser window [reference] */
int flags; /* Additional info */
@@ -34,7 +36,7 @@ struct _DilloWeb {
};
void a_Web_init(void);
-DilloWeb* a_Web_new (const DilloUrl* url);
+DilloWeb* a_Web_new (const DilloUrl* url, const DilloUrl *requester);
int a_Web_valid(DilloWeb *web);
void a_Web_free (DilloWeb*);
int a_Web_dispatch_by_type (const char *Type, DilloWeb *web,