Fired when some error occurred during the page load that prevented it from
being completed.
.TP
-.B RequestQueued
-Fired before each request (and so, multiple times in one page: one time for
-each image, css, scripts, frames...).
-.TP
.B DownloadStart
Fired right before a download is started. This is fired for vimb downloads as
well as external downloads if 'download-use-external' is enabled.
{"DownloadStart", 0x0020},
{"DownloadFinished", 0x0040},
{"DownloadFailed", 0x0080},
- {"RequestQueued", 0x0100},
};
extern VbCore vb;
void vb_download_external(WebKitWebView *view, WebKitDownload *download, const char *file);
static void download_progress_cp(WebKitDownload *download, GParamSpec *pspec);
static void read_from_stdin(void);
-#if defined(FEATURE_AUTOCMD) || defined(FEATURE_ARH)
+#ifdef FEATURE_ARH
static void session_request_queued_cb(SoupSession *session, SoupMessage *msg, gpointer data);
#endif
NULL
);
-#if defined(FEATURE_AUTOCMD) || defined(FEATURE_ARH)
+#ifdef FEATURE_ARH
g_signal_connect(vb.session, "request-queued", G_CALLBACK(session_request_queued_cb), NULL);
#endif
g_free(buf);
}
-#if defined(FEATURE_AUTOCMD) || defined(FEATURE_ARH)
+#ifdef FEATURE_ARH
static void session_request_queued_cb(SoupSession *session, SoupMessage *msg, gpointer data)
{
SoupURI *suri = soup_message_get_uri(msg);
char *uri = soup_uri_to_string(suri, false);
-#ifdef FEATURE_AUTOCMD
- autocmd_run(AU_REQUEST_QUEUED, uri, NULL);
-#endif
-
#ifdef DEBUG
SoupMessageHeadersIter iter;
const char *name, *value;
}
#endif
-#ifdef FEATURE_ARH
arh_run(vb.config.autoresponseheader, uri, msg);
-#endif
g_free(uri);
}