[epiphany] snapshot-service: Rename memory cache lookup function



commit d89374ee0f2653e48143e49f2325c47301f9d603
Author: Michael Catanzaro <mcatanzaro igalia com>
Date:   Sat Apr 30 13:11:07 2016 -0500

    snapshot-service: Rename memory cache lookup function
    
    To be more clear
    
    https://bugzilla.gnome.org/show_bug.cgi?id=765863

 embed/ephy-about-handler.c  |    2 +-
 lib/ephy-snapshot-service.c |    8 ++++----
 lib/ephy-snapshot-service.h |    2 +-
 3 files changed, 6 insertions(+), 6 deletions(-)
---
diff --git a/embed/ephy-about-handler.c b/embed/ephy-about-handler.c
index 791926e..1cf9d49 100644
--- a/embed/ephy-about-handler.c
+++ b/embed/ephy-about-handler.c
@@ -507,7 +507,7 @@ history_service_query_urls_cb (EphyHistoryService     *history,
     const char *snapshot;
     char *thumbnail_style = NULL;
 
-    snapshot = ephy_snapshot_service_lookup_snapshot_path (snapshot_service, url->url);
+    snapshot = ephy_snapshot_service_lookup_cached_snapshot_path (snapshot_service, url->url);
     if (!snapshot) {
       GetSnapshotPathAsyncData *data = g_new (GetSnapshotPathAsyncData, 1);
 
diff --git a/lib/ephy-snapshot-service.c b/lib/ephy-snapshot-service.c
index b2f8a15..85cbdfa 100644
--- a/lib/ephy-snapshot-service.c
+++ b/lib/ephy-snapshot-service.c
@@ -512,8 +512,8 @@ ephy_snapshot_service_get_default (void)
 }
 
 const char *
-ephy_snapshot_service_lookup_snapshot_path (EphySnapshotService *service,
-                                            const char          *url)
+ephy_snapshot_service_lookup_cached_snapshot_path (EphySnapshotService *service,
+                                                   const char          *url)
 {
   SnapshotPathCachedData *data;
 
@@ -624,7 +624,7 @@ ephy_snapshot_service_get_snapshot_path_for_url_async (EphySnapshotService *serv
 
   task = g_task_new (service, cancellable, callback, user_data);
 
-  path = ephy_snapshot_service_lookup_snapshot_path (service, url);
+  path = ephy_snapshot_service_lookup_cached_snapshot_path (service, url);
   if (path) {
     g_task_return_pointer (task, g_strdup (path), g_free);
     g_object_unref (task);
@@ -684,7 +684,7 @@ ephy_snapshot_service_get_snapshot_path_async (EphySnapshotService *service,
   task = g_task_new (service, cancellable, callback, user_data);
 
   uri = webkit_web_view_get_uri (web_view);
-  path = ephy_snapshot_service_lookup_snapshot_path (service, uri);
+  path = ephy_snapshot_service_lookup_cached_snapshot_path (service, uri);
 
   if (path) {
     g_task_return_pointer (task, g_strdup (path), g_free);
diff --git a/lib/ephy-snapshot-service.h b/lib/ephy-snapshot-service.h
index c69f64d..5194b33 100644
--- a/lib/ephy-snapshot-service.h
+++ b/lib/ephy-snapshot-service.h
@@ -46,7 +46,7 @@ GQuark               ephy_snapshot_service_error_quark                      (voi
 
 EphySnapshotService *ephy_snapshot_service_get_default                      (void);
 
-const char          *ephy_snapshot_service_lookup_snapshot_path             (EphySnapshotService *service,
+const char          *ephy_snapshot_service_lookup_cached_snapshot_path      (EphySnapshotService *service,
                                                                              const char *url);
 
 void                 ephy_snapshot_service_get_snapshot_path_for_url_async  (EphySnapshotService *service,


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]