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

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

Issue 815983002: Topsites become keyedService based. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: fix Created 6 years 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 namespace history { 8 namespace history {
9 class TopSites; 9 class TopSitesProvider;
10 10
11 // Interface for observing notifications from TopSites. 11 // Interface for observing notifications from TopSites.
12 class TopSitesObserver { 12 class TopSitesObserver {
13 public: 13 public:
14 // Is called when TopSites finishes loading. 14 // Is called when TopSites finishes loading.
15 virtual void TopSitesLoaded(history::TopSites* top_sites) = 0; 15 virtual void TopSitesLoaded(
16 history::TopSitesProvider* top_sites_provider) = 0;
16 17
17 // Is called when either one of the most visited urls 18 // Is called when either one of the most visited urls
18 // changed, or one of the images changes. 19 // changed, or one of the images changes.
19 virtual void TopSitesChanged(history::TopSites* top_sites) = 0; 20 virtual void TopSitesChanged(
21 history::TopSitesProvider* top_sites_provider) = 0;
20 }; 22 };
21 23
22 } // namespace history 24 } // namespace history
23 25
24 #endif // COMPONENTS_HISTORY_CORE_BROWSER_TOP_SITES_OBSERVER_H_ 26 #endif // COMPONENTS_HISTORY_CORE_BROWSER_TOP_SITES_OBSERVER_H_
OLDNEW
« chrome/test/base/testing_profile.cc ('K') | « chrome/test/base/testing_profile.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698