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

Side by Side Diff: chrome/browser/history/most_visited_urls_provider.h

Issue 27047003: Precache tracking database (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@precache
Patch Set: Addressed comments Created 7 years, 2 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
(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_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698