Chromium Code Reviews| OLD | NEW |
|---|---|
| (Empty) | |
| 1 // Copyright 2013 The Chromium Authors. All rights reserved. | |
| 2 // Use of this source code is governed by a BSD-style license that can be | |
| 3 // found in the LICENSE file. | |
| 4 | |
| 5 #ifndef CHROME_BROWSER_HISTORY_MOST_VISITED_URLS_PROVIDER_H_ | |
| 6 #define CHROME_BROWSER_HISTORY_MOST_VISITED_URLS_PROVIDER_H_ | |
| 7 | |
| 8 #include "base/basictypes.h" | |
| 9 #include "base/compiler_specific.h" | |
| 10 #include "base/memory/ref_counted.h" | |
| 11 #include "components/precache/core/url_list_provider.h" | |
| 12 | |
| 13 namespace history { | |
| 14 | |
| 15 class TopSites; | |
| 16 | |
| 17 // A URLListProvider that provides a list of the user's most visited URLs. | |
| 18 class MostVisitedURLsProvider : public precache::URLListProvider { | |
|
sky
2013/10/28 23:14:16
Is there a particular reason to put this in chrome
sclittle
2013/10/29 07:16:05
Good point, it doesn't really have any purpose out
| |
| 19 public: | |
| 20 explicit MostVisitedURLsProvider(TopSites* top_sites); | |
| 21 ~MostVisitedURLsProvider(); | |
| 22 | |
| 23 // Returns a list of the user's most visited URLs via a callback. May be | |
| 24 // called from any thread. | |
| 25 virtual void GetURLs(const GetURLsCallback& callback) OVERRIDE; | |
| 26 | |
| 27 private: | |
| 28 scoped_refptr<TopSites> top_sites_; | |
| 29 | |
| 30 DISALLOW_COPY_AND_ASSIGN(MostVisitedURLsProvider); | |
| 31 }; | |
| 32 | |
| 33 } // namespace history | |
| 34 | |
| 35 #endif // CHROME_BROWSER_HISTORY_MOST_VISITED_URLS_PROVIDER_H_ | |
| OLD | NEW |