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

Side by Side Diff: components/history/core/browser/top_sites.h

Issue 1162943002: Replace more ObserverList with base::ObserverList. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@observer
Patch Set: Created 5 years, 6 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 unified diff | Download patch
OLDNEW
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2012 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #ifndef COMPONENTS_HISTORY_CORE_BROWSER_TOP_SITES_H_ 5 #ifndef COMPONENTS_HISTORY_CORE_BROWSER_TOP_SITES_H_
6 #define COMPONENTS_HISTORY_CORE_BROWSER_TOP_SITES_H_ 6 #define COMPONENTS_HISTORY_CORE_BROWSER_TOP_SITES_H_
7 7
8 #include <vector> 8 #include <vector>
9 9
10 #include "base/basictypes.h" 10 #include "base/basictypes.h"
(...skipping 166 matching lines...) Expand 10 before | Expand all | Expand 10 after
177 void RemoveObserver(TopSitesObserver* observer); 177 void RemoveObserver(TopSitesObserver* observer);
178 178
179 protected: 179 protected:
180 void NotifyTopSitesLoaded(); 180 void NotifyTopSitesLoaded();
181 void NotifyTopSitesChanged(); 181 void NotifyTopSitesChanged();
182 ~TopSites() override; 182 ~TopSites() override;
183 183
184 private: 184 private:
185 friend class base::RefCountedThreadSafe<TopSites>; 185 friend class base::RefCountedThreadSafe<TopSites>;
186 186
187 ObserverList<TopSitesObserver, true> observer_list_; 187 base::ObserverList<TopSitesObserver, true> observer_list_;
188 188
189 DISALLOW_COPY_AND_ASSIGN(TopSites); 189 DISALLOW_COPY_AND_ASSIGN(TopSites);
190 }; 190 };
191 191
192 } // namespace history 192 } // namespace history
193 193
194 #endif // COMPONENTS_HISTORY_CORE_BROWSER_TOP_SITES_H_ 194 #endif // COMPONENTS_HISTORY_CORE_BROWSER_TOP_SITES_H_
OLDNEW
« no previous file with comments | « components/history/core/browser/history_service.h ('k') | components/infobars/core/infobar_manager.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698