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

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

Issue 896093004: Cleanup usage of history namespace in components/history (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 5 years, 10 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 2014 The Chromium Authors. All rights reserved. 1 // Copyright 2014 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_OBSERVER_H_ 5 #ifndef COMPONENTS_HISTORY_CORE_BROWSER_TOP_SITES_OBSERVER_H_
6 #define COMPONENTS_HISTORY_CORE_BROWSER_TOP_SITES_OBSERVER_H_ 6 #define COMPONENTS_HISTORY_CORE_BROWSER_TOP_SITES_OBSERVER_H_
7 7
8 #include "base/macros.h" 8 #include "base/macros.h"
9 9
10 namespace history { 10 namespace history {
11
11 class TopSites; 12 class TopSites;
12 13
13 // Interface for observing notifications from TopSites. 14 // Interface for observing notifications from TopSites.
14 class TopSitesObserver { 15 class TopSitesObserver {
15 public: 16 public:
16 TopSitesObserver() {} 17 TopSitesObserver() {}
17 virtual ~TopSitesObserver() {} 18 virtual ~TopSitesObserver() {}
18 19
19 // Is called when TopSites finishes loading. 20 // Is called when TopSites finishes loading.
20 virtual void TopSitesLoaded(history::TopSites* top_sites) = 0; 21 virtual void TopSitesLoaded(TopSites* top_sites) = 0;
21 22
22 // Is called when either one of the most visited urls 23 // Is called when either one of the most visited urls
23 // changed, or one of the images changes. 24 // changed, or one of the images changes.
24 virtual void TopSitesChanged(history::TopSites* top_sites) = 0; 25 virtual void TopSitesChanged(TopSites* top_sites) = 0;
25 26
26 private: 27 private:
27 DISALLOW_COPY_AND_ASSIGN(TopSitesObserver); 28 DISALLOW_COPY_AND_ASSIGN(TopSitesObserver);
28 }; 29 };
29 30
30 } // namespace history 31 } // namespace history
31 32
32 #endif // COMPONENTS_HISTORY_CORE_BROWSER_TOP_SITES_OBSERVER_H_ 33 #endif // COMPONENTS_HISTORY_CORE_BROWSER_TOP_SITES_OBSERVER_H_
OLDNEW
« no previous file with comments | « components/history/core/browser/top_sites_database.cc ('k') | components/history/core/browser/url_database.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698