diff options
author | Xan Lopez <xan@src.gnome.org> | 2008-12-12 08:13:54 +0800 |
---|---|---|
committer | Xan Lopez <xan@src.gnome.org> | 2008-12-12 08:13:54 +0800 |
commit | 6bc97bfc06e1ab3ca9041cae66c1524b7c14284a (patch) | |
tree | f94ecc0f4bd3d878a525e514780f192fd52b74fd /embed | |
parent | c4d95ec8b49d437f3372390f1662c67bfd56b64b (diff) | |
download | gsoc2013-epiphany-6bc97bfc06e1ab3ca9041cae66c1524b7c14284a.tar gsoc2013-epiphany-6bc97bfc06e1ab3ca9041cae66c1524b7c14284a.tar.gz gsoc2013-epiphany-6bc97bfc06e1ab3ca9041cae66c1524b7c14284a.tar.bz2 gsoc2013-epiphany-6bc97bfc06e1ab3ca9041cae66c1524b7c14284a.tar.lz gsoc2013-epiphany-6bc97bfc06e1ab3ca9041cae66c1524b7c14284a.tar.xz gsoc2013-epiphany-6bc97bfc06e1ab3ca9041cae66c1524b7c14284a.tar.zst gsoc2013-epiphany-6bc97bfc06e1ab3ca9041cae66c1524b7c14284a.zip |
Revert cookies stuff, didn't want to commit that.
svn path=/trunk/; revision=8633
Diffstat (limited to 'embed')
-rw-r--r-- | embed/Makefile.am | 2 | ||||
-rw-r--r-- | embed/webkit/webkit-embed-single.c | 31 |
2 files changed, 33 insertions, 0 deletions
diff --git a/embed/Makefile.am b/embed/Makefile.am index c274a2e8b..114d0881e 100644 --- a/embed/Makefile.am +++ b/embed/Makefile.am @@ -21,6 +21,7 @@ INST_H_FILES = \ ephy-adblock-manager.h \ ephy-base-embed.h \ ephy-command-manager.h \ + ephy-cookie-manager.h \ ephy-embed.h \ ephy-embed-container.h \ ephy-embed-event.h \ @@ -44,6 +45,7 @@ libephyembed_la_SOURCES = \ ephy-base-embed.c \ downloader-view.c \ ephy-command-manager.c \ + ephy-cookie-manager.c \ ephy-download.c \ ephy-embed.c \ ephy-embed-container.c \ diff --git a/embed/webkit/webkit-embed-single.c b/embed/webkit/webkit-embed-single.c index 281662ea0..2aa778c74 100644 --- a/embed/webkit/webkit-embed-single.c +++ b/embed/webkit/webkit-embed-single.c @@ -24,6 +24,7 @@ #include "webkit-embed-single.h" #include "webkit-embed-prefs.h" #include "ephy-embed-single.h" +#include "ephy-cookie-manager.h" #include "ephy-password-manager.h" #include "ephy-permission-manager.h" @@ -45,6 +46,7 @@ enum { static void webkit_embed_single_class_init (WebKitEmbedSingleClass *klass); static void webkit_embed_single_init (WebKitEmbedSingle *wes); static void ephy_embed_single_iface_init (EphyEmbedSingleIface *iface); +static void ephy_cookie_manager_iface_init (EphyCookieManagerIface *iface); static void ephy_password_manager_iface_init (EphyPasswordManagerIface *iface); static void ephy_permission_manager_iface_init (EphyPermissionManagerIface *iface); @@ -59,6 +61,8 @@ static void ephy_certificate_manager_iface_init (EphyCertificateManagerIface *if G_DEFINE_TYPE_WITH_CODE (WebKitEmbedSingle, webkit_embed_single, G_TYPE_OBJECT, G_IMPLEMENT_INTERFACE (EPHY_TYPE_EMBED_SINGLE, ephy_embed_single_iface_init) + G_IMPLEMENT_INTERFACE (EPHY_TYPE_COOKIE_MANAGER, + ephy_cookie_manager_iface_init) G_IMPLEMENT_INTERFACE (EPHY_TYPE_PASSWORD_MANAGER, ephy_password_manager_iface_init) G_IMPLEMENT_INTERFACE (EPHY_TYPE_CERTIFICATE_MANAGER, @@ -69,6 +73,8 @@ G_DEFINE_TYPE_WITH_CODE (WebKitEmbedSingle, webkit_embed_single, G_TYPE_OBJECT, G_DEFINE_TYPE_WITH_CODE (WebKitEmbedSingle, webkit_embed_single, G_TYPE_OBJECT, G_IMPLEMENT_INTERFACE (EPHY_TYPE_EMBED_SINGLE, ephy_embed_single_iface_init) + G_IMPLEMENT_INTERFACE (EPHY_TYPE_COOKIE_MANAGER, + ephy_cookie_manager_iface_init) G_IMPLEMENT_INTERFACE (EPHY_TYPE_PASSWORD_MANAGER, ephy_password_manager_iface_init) G_IMPLEMENT_INTERFACE (EPHY_TYPE_PERMISSION_MANAGER, @@ -141,6 +147,23 @@ impl_get_font_list (EphyEmbedSingle *shell, } static GList * +impl_list_cookies (EphyCookieManager *manager) +{ + return NULL; +} + +static void +impl_remove_cookie (EphyCookieManager *manager, + const EphyCookie *cookie) +{ +} + +static void +impl_clear_cookies (EphyCookieManager *manager) +{ +} + +static GList * impl_list_passwords (EphyPasswordManager *manager) { return NULL; @@ -309,6 +332,14 @@ ephy_embed_single_iface_init (EphyEmbedSingleIface *iface) } static void +ephy_cookie_manager_iface_init (EphyCookieManagerIface *iface) +{ + iface->list = impl_list_cookies; + iface->remove = impl_remove_cookie; + iface->clear = impl_clear_cookies; +} + +static void ephy_password_manager_iface_init (EphyPasswordManagerIface *iface) { iface->add = impl_add_password; |