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

Unified Diff: chrome/browser/history/top_sites.cc

Issue 441623002: Eliminate sending NOTIFICATION_TOP_SITES_* from TopSites (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Fix incorrect parmeter being passed in notification Created 6 years, 3 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
« no previous file with comments | « chrome/browser/history/top_sites.h ('k') | chrome/browser/history/top_sites_impl.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/history/top_sites.cc
diff --git a/chrome/browser/history/top_sites.cc b/chrome/browser/history/top_sites.cc
index b37271e75a6d5affafb852c08d892356d40c3679..b06bf64343a7930ea444729405fe8936a59fd528 100644
--- a/chrome/browser/history/top_sites.cc
+++ b/chrome/browser/history/top_sites.cc
@@ -37,4 +37,26 @@ TopSites* TopSites::Create(Profile* profile, const base::FilePath& db_name) {
return top_sites_impl;
}
+TopSites::TopSites() {
+}
+
+TopSites::~TopSites() {
+}
+
+void TopSites::AddObserver(TopSitesObserver* observer) {
+ observer_list_.AddObserver(observer);
+}
+
+void TopSites::RemoveObserver(TopSitesObserver* observer) {
+ observer_list_.RemoveObserver(observer);
+}
+
+void TopSites::NotifyTopSitesLoaded() {
+ FOR_EACH_OBSERVER(TopSitesObserver, observer_list_, TopSitesLoaded(this));
+}
+
+void TopSites::NotifyTopSitesChanged() {
+ FOR_EACH_OBSERVER(TopSitesObserver, observer_list_, TopSitesChanged(this));
+}
+
} // namespace history
« no previous file with comments | « chrome/browser/history/top_sites.h ('k') | chrome/browser/history/top_sites_impl.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698