From c1b4e7e87652b57797c4e7e56f9c94983c5d38e7 Mon Sep 17 00:00:00 2001 From: Xan Lopez Date: Wed, 3 Oct 2012 10:05:51 +0200 Subject: uri-tester: make it compile wth WebKit2 Still won't work, though, needs to be ported. --- embed/uri-tester.c | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'embed') diff --git a/embed/uri-tester.c b/embed/uri-tester.c index 0b4ada297..f997cd7c4 100644 --- a/embed/uri-tester.c +++ b/embed/uri-tester.c @@ -31,7 +31,9 @@ #include #include #include +#ifndef HAVE_WEBKIT2 #include +#endif #define DEFAULT_FILTER_URL "http://adblockplus.mozdev.org/easylist/easylist.txt" #define FILTERS_LIST_FILENAME "filters.list" @@ -113,6 +115,7 @@ uri_tester_download_notify_status_cb (WebKitDownload *download, GParamSpec *pspec, UriTester *tester) { +#ifndef HAVE_WEBKIT2 const char *dest = NULL; if (webkit_download_get_status (download) != WEBKIT_DOWNLOAD_STATUS_FINISHED) @@ -125,11 +128,13 @@ uri_tester_download_notify_status_cb (WebKitDownload *download, /* Parse the file from disk. */ dest = webkit_download_get_destination_uri (download); uri_tester_parse_file_at_uri (tester, dest); +#endif } static void uri_tester_retrieve_filter (UriTester *tester, const char *url, const char *fileuri) { +#ifndef HAVE_WEBKIT2 WebKitNetworkRequest *request = NULL; WebKitDownload *download = NULL; @@ -147,6 +152,7 @@ uri_tester_retrieve_filter (UriTester *tester, const char *url, const char *file G_CALLBACK (uri_tester_download_notify_status_cb), tester); webkit_download_start (download); +#endif } static gboolean -- cgit v1.2.3