Refactor sending notification from HistoryBackend
commit597713e50f4b2c5e2e9270721d60aac09e7529f4
authorsdefresne <sdefresne@chromium.org>
Wed, 12 Nov 2014 11:02:36 +0000 (12 03:02 -0800)
committerCommit bot <commit-bot@chromium.org>
Wed, 12 Nov 2014 11:02:58 +0000 (12 11:02 +0000)
tree8d70f1f6eb4837cb4584ec74a3155bb753daa1b2
parent3613f53cc99e75784e0e311a6c99aa5460ed17c1
Refactor sending notification from HistoryBackend

Introduce an interface HistoryBackendNotifier that forward
HistoryBackend notifications to the intended recipients.

Change AndroidProviderBackend to use HistoryBackendNotifier
instead of HistoryBackend::Delegate (this will be required
once NOTIFICATION_HISTORY_URLS_{DELETED,MODIFIED} have been
converted to observers instead).

Change ExpireHistoryBackend to use HistoryBackendNotifier
instead of ExpireHistoryBackendDelegate since the new class
interface is a superset of the class.

BUG=373326

Review URL: https://codereview.chromium.org/708653003

Cr-Commit-Position: refs/heads/master@{#303815}
12 files changed:
chrome/browser/history/android/android_provider_backend.cc
chrome/browser/history/android/android_provider_backend.h
chrome/browser/history/android/android_provider_backend_unittest.cc
chrome/browser/history/expire_history_backend.cc
chrome/browser/history/expire_history_backend.h
chrome/browser/history/expire_history_backend_unittest.cc
chrome/browser/history/history_backend.cc
chrome/browser/history/history_backend.h
chrome/browser/sync/profile_sync_service_typed_url_unittest.cc
components/history.gypi
components/history/core/browser/BUILD.gn
components/history/core/browser/history_backend_notifier.h [new file with mode: 0644]