aboutsummaryrefslogtreecommitdiffstats
path: root/lib/ephy-form-auth-data.h
diff options
context:
space:
mode:
authorCarlos Garcia Campos <cgarcia@igalia.com>2013-03-09 23:10:36 +0800
committerCarlos Garcia Campos <carlosgc@gnome.org>2013-03-12 17:01:45 +0800
commitd973101a1efc06579b110c4de89360919280da2e (patch)
treec64afb925ac47d00ef4745a22f34f1fdff79567a /lib/ephy-form-auth-data.h
parent2499031072e275e68ad8dc1cb9bd0a53397a5e5a (diff)
downloadgsoc2013-epiphany-d973101a1efc06579b110c4de89360919280da2e.tar
gsoc2013-epiphany-d973101a1efc06579b110c4de89360919280da2e.tar.gz
gsoc2013-epiphany-d973101a1efc06579b110c4de89360919280da2e.tar.bz2
gsoc2013-epiphany-d973101a1efc06579b110c4de89360919280da2e.tar.lz
gsoc2013-epiphany-d973101a1efc06579b110c4de89360919280da2e.tar.xz
gsoc2013-epiphany-d973101a1efc06579b110c4de89360919280da2e.tar.zst
gsoc2013-epiphany-d973101a1efc06579b110c4de89360919280da2e.zip
Add EphyFormAuthDataCache to ephy-form-auth-data
And use it in EphyEmbedSingle to cache the form auth data.
Diffstat (limited to 'lib/ephy-form-auth-data.h')
-rw-r--r--lib/ephy-form-auth-data.h18
1 files changed, 18 insertions, 0 deletions
diff --git a/lib/ephy-form-auth-data.h b/lib/ephy-form-auth-data.h
index 5bd3bfdf3..33333719c 100644
--- a/lib/ephy-form-auth-data.h
+++ b/lib/ephy-form-auth-data.h
@@ -56,4 +56,22 @@ const SecretSchema *ephy_form_auth_data_get_password_schema (void) G_GNUC_CONST;
#define EPHY_FORM_PASSWORD_SCHEMA ephy_form_auth_data_get_password_schema ()
+typedef struct {
+ char *form_username;
+ char *form_password;
+ char *username;
+} EphyFormAuthData;
+
+typedef struct _EphyFormAuthDataCache EphyFormAuthDataCache;
+
+EphyFormAuthDataCache *ephy_form_auth_data_cache_new (void);
+void ephy_form_auth_data_cache_free (EphyFormAuthDataCache *cache);
+void ephy_form_auth_data_cache_add (EphyFormAuthDataCache *cache,
+ const char *uri,
+ const char *form_username,
+ const char *form_password,
+ const char *username);
+GSList *ephy_form_auth_data_cache_get_list (EphyFormAuthDataCache *cache,
+ const char *uri);
+
#endif