aboutsummaryrefslogtreecommitdiffstats
path: root/embed/ephy-request-about.c
diff options
context:
space:
mode:
authorCarlos Garcia Campos <cgarcia@igalia.com>2012-05-06 22:47:19 +0800
committerCarlos Garcia Campos <carlosgc@gnome.org>2012-06-21 19:54:16 +0800
commit97c91b2fc2059b1e358bb19896203afaa44bfd33 (patch)
tree6aa01250a99fa884d177ce3202d8ff41e8e96d74 /embed/ephy-request-about.c
parenta8767266443074689200fff9ca43531d88d65aed (diff)
downloadgsoc2013-epiphany-97c91b2fc2059b1e358bb19896203afaa44bfd33.tar
gsoc2013-epiphany-97c91b2fc2059b1e358bb19896203afaa44bfd33.tar.gz
gsoc2013-epiphany-97c91b2fc2059b1e358bb19896203afaa44bfd33.tar.bz2
gsoc2013-epiphany-97c91b2fc2059b1e358bb19896203afaa44bfd33.tar.lz
gsoc2013-epiphany-97c91b2fc2059b1e358bb19896203afaa44bfd33.tar.xz
gsoc2013-epiphany-97c91b2fc2059b1e358bb19896203afaa44bfd33.tar.zst
gsoc2013-epiphany-97c91b2fc2059b1e358bb19896203afaa44bfd33.zip
Initial WebKit2 port
It builds and basic functionality works.
Diffstat (limited to 'embed/ephy-request-about.c')
-rw-r--r--embed/ephy-request-about.c8
1 files changed, 8 insertions, 0 deletions
diff --git a/embed/ephy-request-about.c b/embed/ephy-request-about.c
index bfff22f95..cddb9d135 100644
--- a/embed/ephy-request-about.c
+++ b/embed/ephy-request-about.c
@@ -30,7 +30,11 @@
#include <gio/gio.h>
#include <glib/gi18n.h>
#include <libsoup/soup-uri.h>
+#ifdef HAVE_WEBKIT2
+#include <webkit2/webkit2.h>
+#else
#include <webkit/webkit.h>
+#endif
G_DEFINE_TYPE (EphyRequestAbout, ephy_request_about, SOUP_TYPE_REQUEST)
@@ -93,6 +97,9 @@ ephy_request_about_send (SoupRequest *request,
read_css_style (about);
if (!g_strcmp0 (uri->path, "plugins")) {
+#ifdef HAVE_WEBKIT2
+ /* TODO: SoupRequest and Plugins */
+#else
WebKitWebPluginDatabase* database = webkit_get_web_plugin_database ();
GSList *plugin_list, *p;
@@ -136,6 +143,7 @@ ephy_request_about_send (SoupRequest *request,
}
webkit_web_plugin_database_plugins_list_free (plugin_list);
+#endif
g_string_append (data_str, "</body>");
} else if (!g_strcmp0 (uri->path, "memory")) {
char *memory = ephy_smaps_to_html (EPHY_REQUEST_ABOUT (request)->priv->smaps);