| OLD | NEW |
| 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 Loading... |
| 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_ |
| OLD | NEW |