aboutsummaryrefslogtreecommitdiffstats
path: root/src/ephy-session.h
diff options
context:
space:
mode:
authorCarlos Garcia Campos <cgarcia@igalia.com>2012-10-08 17:19:01 +0800
committerCarlos Garcia Campos <cgarcia@igalia.com>2013-01-09 00:38:01 +0800
commit12415ad405dc6a9bcc42bd693d22c9b857e9bab3 (patch)
tree16d65bfdc561fe20971de92b9ef8cc76b099a6d1 /src/ephy-session.h
parentd7e638c985039dc4521273846bbbac7295564b87 (diff)
downloadgsoc2013-epiphany-12415ad405dc6a9bcc42bd693d22c9b857e9bab3.tar
gsoc2013-epiphany-12415ad405dc6a9bcc42bd693d22c9b857e9bab3.tar.gz
gsoc2013-epiphany-12415ad405dc6a9bcc42bd693d22c9b857e9bab3.tar.bz2
gsoc2013-epiphany-12415ad405dc6a9bcc42bd693d22c9b857e9bab3.tar.lz
gsoc2013-epiphany-12415ad405dc6a9bcc42bd693d22c9b857e9bab3.tar.xz
gsoc2013-epiphany-12415ad405dc6a9bcc42bd693d22c9b857e9bab3.tar.zst
gsoc2013-epiphany-12415ad405dc6a9bcc42bd693d22c9b857e9bab3.zip
ephy-session: Load the session asynchronously
Make ephy_session_load() asynchronous and add ephy_session_load_from_stream() to replace ephy_session_load_from_string(). Use a xml sax parser now that is fed from a GInputStream. https://bugzilla.gnome.org/show_bug.cgi?id=681782
Diffstat (limited to 'src/ephy-session.h')
-rw-r--r--src/ephy-session.h54
1 files changed, 32 insertions, 22 deletions
diff --git a/src/ephy-session.h b/src/ephy-session.h
index 89b7316d7..6ab4d389f 100644
--- a/src/ephy-session.h
+++ b/src/ephy-session.h
@@ -67,28 +67,38 @@ struct _EphySessionClass
GObjectClass parent_class;
};
-GType ephy_session_get_type (void);
-
-gboolean ephy_session_save (EphySession *session,
- const char *filename);
-
-gboolean ephy_session_load (EphySession *session,
- const char *filename,
- guint32 user_time);
-
-gboolean ephy_session_load_from_string (EphySession *session,
- const char *session_data,
- gssize length,
- guint32 user_time);
-
-void ephy_session_close (EphySession *session);
-
-void ephy_session_queue_command (EphySession *session,
- EphySessionCommand op,
- const char *arg,
- const char **args,
- guint32 user_time,
- gboolean priority);
+GType ephy_session_get_type (void);
+
+gboolean ephy_session_save (EphySession *session,
+ const char *filename);
+
+void ephy_session_load (EphySession *session,
+ const char *filename,
+ guint32 user_time,
+ GCancellable *cancellable,
+ GAsyncReadyCallback callback,
+ gpointer user_data);
+gboolean ephy_session_load_finish (EphySession *session,
+ GAsyncResult *result,
+ GError **error);
+void ephy_session_load_from_stream (EphySession *session,
+ GInputStream *stream,
+ guint32 user_time,
+ GCancellable *cancellable,
+ GAsyncReadyCallback callback,
+ gpointer user_data);
+gboolean ephy_session_load_from_stream_finish (EphySession *session,
+ GAsyncResult *result,
+ GError **error);
+
+void ephy_session_close (EphySession *session);
+
+void ephy_session_queue_command (EphySession *session,
+ EphySessionCommand op,
+ const char *arg,
+ const char **args,
+ guint32 user_time,
+ gboolean priority);
G_END_DECLS