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

Side by Side Diff: components/precache/content/precache_manager.cc

Issue 2388673002: Revert of [Sync] Move //components/sync to the syncer namespace. (patchset #5 id:40001 of https://co (Closed)
Patch Set: Created 4 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
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 "components/precache/content/precache_manager.h" 5 #include "components/precache/content/precache_manager.h"
6 6
7 #include <string> 7 #include <string>
8 #include <utility> 8 #include <utility>
9 #include <vector> 9 #include <vector>
10 10
(...skipping 30 matching lines...) Expand all
41 } // namespace 41 } // namespace
42 42
43 namespace precache { 43 namespace precache {
44 44
45 size_t NumTopHosts() { 45 size_t NumTopHosts() {
46 return kNumTopHosts; 46 return kNumTopHosts;
47 } 47 }
48 48
49 PrecacheManager::PrecacheManager( 49 PrecacheManager::PrecacheManager(
50 content::BrowserContext* browser_context, 50 content::BrowserContext* browser_context,
51 const syncer::SyncService* const sync_service, 51 const sync_driver::SyncService* const sync_service,
52 const history::HistoryService* const history_service, 52 const history::HistoryService* const history_service,
53 const base::FilePath& db_path, 53 const base::FilePath& db_path,
54 std::unique_ptr<PrecacheDatabase> precache_database) 54 std::unique_ptr<PrecacheDatabase> precache_database)
55 : browser_context_(browser_context), 55 : browser_context_(browser_context),
56 sync_service_(sync_service), 56 sync_service_(sync_service),
57 history_service_(history_service), 57 history_service_(history_service),
58 is_precaching_(false) { 58 is_precaching_(false) {
59 precache_database_ = std::move(precache_database); 59 precache_database_ = std::move(precache_database);
60 BrowserThread::PostTask( 60 BrowserThread::PostTask(
61 BrowserThread::DB, FROM_HERE, 61 BrowserThread::DB, FROM_HERE,
(...skipping 287 matching lines...) Expand 10 before | Expand all | Expand 10 after
349 this)); 349 this));
350 precache_fetcher_->Start(); 350 precache_fetcher_->Start();
351 } 351 }
352 352
353 void PrecacheManager::OnHostsReceivedThenDone( 353 void PrecacheManager::OnHostsReceivedThenDone(
354 const history::TopHostsList& host_counts) { 354 const history::TopHostsList& host_counts) {
355 OnDone(); 355 OnDone();
356 } 356 }
357 357
358 } // namespace precache 358 } // namespace precache
OLDNEW
« no previous file with comments | « components/precache/content/precache_manager.h ('k') | components/precache/content/precache_manager_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698