Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(850)

Unified Diff: chrome/browser/history/history_backend.h

Issue 15275004: bookmarks: Get rid of the dependency on history_notifications.h (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: more android fixes Created 7 years, 7 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
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).

Powered by Google App Engine
This is Rietveld 408576698