[epiphany/history-rewrite-second] Add the EphyBrowseHistory wrappers for the added service API
- From: Claudio Saavedra <csaavedra src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [epiphany/history-rewrite-second] Add the EphyBrowseHistory wrappers for the added service API
- Date: Fri, 2 Mar 2012 19:44:34 +0000 (UTC)
commit f87a44d75b9b8d84517d5de210016883e159c3ed
Author: Claudio Saavedra <csaavedra igalia com>
Date: Fri Mar 2 21:32:18 2012 +0200
Add the EphyBrowseHistory wrappers for the added service API
Namely, ephy_browse_history_clear() and
ephy_browse_history_populate_hosts()
embed/ephy-browse-history.c | 24 ++++++++++++++++++++++++
embed/ephy-browse-history.h | 7 +++++++
2 files changed, 31 insertions(+), 0 deletions(-)
---
diff --git a/embed/ephy-browse-history.c b/embed/ephy-browse-history.c
index 011dd67..fe28388 100644
--- a/embed/ephy-browse-history.c
+++ b/embed/ephy-browse-history.c
@@ -133,6 +133,19 @@ ephy_browse_history_get_url (EphyBrowseHistory *history,
}
void
+ephy_browse_history_populate_hosts (EphyBrowseHistory *history,
+ GList *hosts,
+ EphyHistoryJobCallback callback,
+ gpointer user_data)
+{
+ g_return_if_fail (EPHY_IS_BROWSE_HISTORY (history));
+ g_return_if_fail (hosts != NULL);
+
+ ephy_history_service_populate_hosts (history->priv->history_service,
+ hosts, callback, user_data);
+}
+
+void
ephy_browse_history_find_urls (EphyBrowseHistory *history,
gint64 from, gint64 to,
guint limit, gint host,
@@ -181,3 +194,14 @@ ephy_browse_history_get_host_for_url (EphyBrowseHistory *history,
ephy_history_service_get_host_for_url (history->priv->history_service,
url, callback, user_data);
}
+
+void
+ephy_browse_history_clear (EphyBrowseHistory *history,
+ EphyHistoryJobCallback callback,
+ gpointer user_data)
+{
+ g_return_if_fail (EPHY_IS_BROWSE_HISTORY (history));
+
+ ephy_history_service_clear (history->priv->history_service,
+ callback, user_data);
+}
diff --git a/embed/ephy-browse-history.h b/embed/ephy-browse-history.h
index a1fa080..3190b35 100644
--- a/embed/ephy-browse-history.h
+++ b/embed/ephy-browse-history.h
@@ -81,6 +81,13 @@ void ephy_browse_history_get_host_for_url (EphyBrowseHistory
const char *url,
EphyHistoryJobCallback callback,
gpointer user_data);
+void ephy_browse_history_populate_hosts (EphyBrowseHistory *history,
+ GList *hosts,
+ EphyHistoryJobCallback callback,
+ gpointer user_data);
+void ephy_browse_history_clear (EphyBrowseHistory *history,
+ EphyHistoryJobCallback callback,
+ gpointer user_data);
G_END_DECLS
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]