diff options
author | Carlos Garcia Campos <cgarcia@igalia.com> | 2012-06-08 16:50:30 +0800 |
---|---|---|
committer | Carlos Garcia Campos <carlosgc@gnome.org> | 2012-07-04 19:15:37 +0800 |
commit | dcb11d1f5517bd4df39fc0d0228fd02214ad903d (patch) | |
tree | 48cace962d9e6edafed409ec5720769d22702545 /embed/ephy-embed-prefs.h | |
parent | 74ff5812f0cc1c2f94c64cc00bc99e8bc887793f (diff) | |
download | gsoc2013-epiphany-dcb11d1f5517bd4df39fc0d0228fd02214ad903d.tar.gz gsoc2013-epiphany-dcb11d1f5517bd4df39fc0d0228fd02214ad903d.tar.zst gsoc2013-epiphany-dcb11d1f5517bd4df39fc0d0228fd02214ad903d.zip |
Port cookies to WebKit2
https://bugzilla.gnome.org/show_bug.cgi?id=678626
Diffstat (limited to 'embed/ephy-embed-prefs.h')
-rw-r--r-- | embed/ephy-embed-prefs.h | 19 |
1 files changed, 14 insertions, 5 deletions
diff --git a/embed/ephy-embed-prefs.h b/embed/ephy-embed-prefs.h index 0db4ffbc3..f214250e3 100644 --- a/embed/ephy-embed-prefs.h +++ b/embed/ephy-embed-prefs.h @@ -23,7 +23,11 @@ #include "ephy-embed.h" +#ifdef HAVE_WEBKIT2 +#include <webkit2/webkit2.h> +#else #include <libsoup/soup.h> +#endif #if !defined (__EPHY_EPIPHANY_H_INSIDE__) && !defined (EPIPHANY_COMPILATION) #error "Only <epiphany/epiphany.h> can be included directly." @@ -34,11 +38,16 @@ G_BEGIN_DECLS -void ephy_embed_prefs_init (void); -void ephy_embed_prefs_shutdown (void); -void ephy_embed_prefs_add_embed (EphyEmbed *embed); -void ephy_embed_prefs_set_cookie_jar_policy (SoupCookieJar *jar, - const char *gconf_policy); +void ephy_embed_prefs_init (void); +void ephy_embed_prefs_shutdown (void); +void ephy_embed_prefs_add_embed (EphyEmbed *embed); +#ifdef HAVE_WEBKIT2 +void ephy_embed_prefs_set_cookie_accept_policy (WebKitCookieManager *cookie_manager, + const char *settings_policy); +#else +void ephy_embed_prefs_set_cookie_jar_policy (SoupCookieJar *jar, + const char *gconf_policy); +#endif G_END_DECLS |