Index: chrome/browser/history/history_backend.h |
diff --git a/chrome/browser/history/history_backend.h b/chrome/browser/history/history_backend.h |
index ff759049ce1def1f343e778a8200d37ea88309bc..e0d828b528b01364c5deda85d758a8a8ec1e59e5 100644 |
--- a/chrome/browser/history/history_backend.h |
+++ b/chrome/browser/history/history_backend.h |
@@ -31,6 +31,10 @@ class TestingProfile; |
class TypedUrlSyncableService; |
struct ThumbnailScore; |
+namespace chrome { |
+struct FaviconChangedDetails; |
+} |
+ |
namespace history { |
#if defined(OS_ANDROID) |
class AndroidProviderBackend; |
@@ -87,6 +91,11 @@ class HistoryBackend : public base::RefCountedThreadSafe<HistoryBackend>, |
virtual void SetInMemoryBackend(int backend_id, |
InMemoryHistoryBackend* backend) = 0; |
+ // Sends chrome::NOTIFICATION_FAVICON_CHANGED through Notification Serivce. |
+ // Ownership of the [details] is transferred to this function. |
+ virtual void SendFaviconChangedNotification( |
+ chrome::FaviconChangedDetails* details) = 0; |
+ |
// Broadcasts the specified notification to the notification service. |
// This is implemented here because notifications must only be sent from |
// the main thread. This is the only method that doesn't identify the |
@@ -783,6 +792,10 @@ class HistoryBackend : public base::RefCountedThreadSafe<HistoryBackend>, |
// Release all tasks in history_db_tasks_ and clears it. |
void ReleaseDBTasks(); |
+ // Sends a chrome::NOTIFICATION_FAVICON_CHANGED notification on the main |
+ // thread. |
+ void SendFaviconChangedNotification(chrome::FaviconChangedDetails* details); |
+ |
// Schedules a broadcast of the given notification on the main thread. The |
// details argument will have ownership taken by this function (it will be |
// sent to the main thread and deleted there). |