OLD | NEW |
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 |
11 #include "base/bind.h" | 11 #include "base/bind.h" |
12 #include "base/command_line.h" | 12 #include "base/command_line.h" |
13 #include "base/files/file_path.h" | 13 #include "base/files/file_path.h" |
14 #include "base/logging.h" | 14 #include "base/logging.h" |
15 #include "base/metrics/field_trial.h" | 15 #include "base/metrics/field_trial.h" |
16 #include "base/prefs/pref_service.h" | |
17 #include "base/strings/string_util.h" | 16 #include "base/strings/string_util.h" |
18 #include "base/time/time.h" | 17 #include "base/time/time.h" |
19 #include "components/history/core/browser/history_service.h" | 18 #include "components/history/core/browser/history_service.h" |
20 #include "components/precache/core/precache_database.h" | 19 #include "components/precache/core/precache_database.h" |
21 #include "components/precache/core/precache_switches.h" | 20 #include "components/precache/core/precache_switches.h" |
| 21 #include "components/prefs/pref_service.h" |
22 #include "components/sync_driver/sync_service.h" | 22 #include "components/sync_driver/sync_service.h" |
23 #include "components/variations/variations_associated_data.h" | 23 #include "components/variations/variations_associated_data.h" |
24 #include "content/public/browser/browser_context.h" | 24 #include "content/public/browser/browser_context.h" |
25 #include "content/public/browser/browser_thread.h" | 25 #include "content/public/browser/browser_thread.h" |
26 #include "net/base/network_change_notifier.h" | 26 #include "net/base/network_change_notifier.h" |
27 | 27 |
28 using content::BrowserThread; | 28 using content::BrowserThread; |
29 | 29 |
30 namespace { | 30 namespace { |
31 | 31 |
(...skipping 246 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
278 this)); | 278 this)); |
279 precache_fetcher_->Start(); | 279 precache_fetcher_->Start(); |
280 } | 280 } |
281 | 281 |
282 void PrecacheManager::OnHostsReceivedThenDone( | 282 void PrecacheManager::OnHostsReceivedThenDone( |
283 const history::TopHostsList& host_counts) { | 283 const history::TopHostsList& host_counts) { |
284 OnDone(); | 284 OnDone(); |
285 } | 285 } |
286 | 286 |
287 } // namespace precache | 287 } // namespace precache |
OLD | NEW |