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

Side by Side Diff: chrome/browser/precache/most_visited_urls_provider.cc

Issue 870063002: Componentize TopSites, TopSitesBackend, TopSitesDatabase (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@815983002
Patch Set: Fix typo 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
« no previous file with comments | « chrome/browser/jumplist_win.cc ('k') | chrome/browser/search/instant_service.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright 2013 The Chromium Authors. All rights reserved. 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 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 #include "chrome/browser/precache/most_visited_urls_provider.h" 5 #include "chrome/browser/precache/most_visited_urls_provider.h"
6 6
7 #include <list> 7 #include <list>
8 8
9 #include "base/bind.h" 9 #include "base/bind.h"
10 #include "chrome/browser/history/top_sites.h"
11 #include "components/history/core/browser/history_types.h" 10 #include "components/history/core/browser/history_types.h"
11 #include "components/history/core/browser/top_sites.h"
12 #include "url/gurl.h" 12 #include "url/gurl.h"
13 13
14 using history::MostVisitedURLList; 14 using history::MostVisitedURLList;
15 15
16 namespace { 16 namespace {
17 17
18 void OnMostVisitedURLsReceived( 18 void OnMostVisitedURLsReceived(
19 const precache::URLListProvider::GetURLsCallback& callback, 19 const precache::URLListProvider::GetURLsCallback& callback,
20 const MostVisitedURLList& most_visited_urls) { 20 const MostVisitedURLList& most_visited_urls) {
21 std::list<GURL> urls; 21 std::list<GURL> urls;
(...skipping 14 matching lines...) Expand all
36 : top_sites_(top_sites) {} 36 : top_sites_(top_sites) {}
37 37
38 MostVisitedURLsProvider::~MostVisitedURLsProvider() {} 38 MostVisitedURLsProvider::~MostVisitedURLsProvider() {}
39 39
40 void MostVisitedURLsProvider::GetURLs(const GetURLsCallback& callback) { 40 void MostVisitedURLsProvider::GetURLs(const GetURLsCallback& callback) {
41 top_sites_->GetMostVisitedURLs( 41 top_sites_->GetMostVisitedURLs(
42 base::Bind(&OnMostVisitedURLsReceived, callback), false); 42 base::Bind(&OnMostVisitedURLsReceived, callback), false);
43 } 43 }
44 44
45 } // namespace precache 45 } // namespace precache
OLDNEW
« no previous file with comments | « chrome/browser/jumplist_win.cc ('k') | chrome/browser/search/instant_service.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698