Index: components/history/core/browser/history_service.h |
diff --git a/components/history/core/browser/history_service.h b/components/history/core/browser/history_service.h |
index 947ad23567ca396ff3a3943531c89f168a46ff91..fc390fda74a6fdad75adc7709fb944f4931ceee7 100644 |
--- a/components/history/core/browser/history_service.h |
+++ b/components/history/core/browser/history_service.h |
@@ -458,14 +458,19 @@ class HistoryService : public syncer::SyncableService, public KeyedService { |
scoped_ptr<HistoryDBTask> task, |
base::CancelableTaskTracker* tracker); |
- // This callback is invoked when favicon change for urls. |
- typedef base::Callback<void(const std::set<GURL>&)> OnFaviconChangedCallback; |
+ // Callback for when favicon data changes. The first std::set contains a |
+ // list of page URLs for which the favicon data has changed. The second |
+ // std::set contains a list of icon URLs for which the favicon data has |
+ // changed. |
+ typedef base::Callback<void(const std::set<GURL>&, const std::set<GURL>&)> |
+ OnFaviconsChangedCallback; |
// Add a callback to the list. The callback will remain registered until the |
- // returned Subscription is destroyed. This must occurs before HistoryService |
- // is destroyed. |
- scoped_ptr<base::CallbackList<void(const std::set<GURL>&)>::Subscription> |
- AddFaviconChangedCallback(const OnFaviconChangedCallback& callback) |
+ // returned Subscription is destroyed. The Subscription must be destroyed |
+ // before HistoryService is destroyed. |
+ scoped_ptr<base::CallbackList<void(const std::set<GURL>&, |
+ const std::set<GURL>&)>::Subscription> |
+ AddFaviconsChangedCallback(const OnFaviconsChangedCallback& callback) |
WARN_UNUSED_RESULT; |
// Testing ------------------------------------------------------------------- |
@@ -780,8 +785,11 @@ class HistoryService : public syncer::SyncableService, public KeyedService { |
// specified priority. The task will have ownership taken. |
void ScheduleTask(SchedulePriority priority, const base::Closure& task); |
- // Invokes all callback registered by AddFaviconChangedCallback. |
- void NotifyFaviconChanged(const std::set<GURL>& changed_favicons); |
+ // Called when the favicons for the given page URLs (e.g. |
+ // http://www.google.com) and the given icon URLs (e.g. |
+ // http://www.google.com/favicon.ico) have changed. |
+ void NotifyFaviconsChanged(const std::set<GURL>& page_urls, |
+ const std::set<GURL>& icon_urls); |
base::ThreadChecker thread_checker_; |
@@ -816,7 +824,7 @@ class HistoryService : public syncer::SyncableService, public KeyedService { |
bool backend_loaded_; |
base::ObserverList<HistoryServiceObserver> observers_; |
- base::CallbackList<void(const std::set<GURL>&)> |
+ base::CallbackList<void(const std::set<GURL>&, const std::set<GURL>&)> |
favicon_changed_callback_list_; |
DeleteDirectiveHandler delete_directive_handler_; |