| 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/logging.h" | 13 #include "base/logging.h" |
| 14 #include "base/metrics/field_trial.h" | 14 #include "base/metrics/field_trial.h" |
| 15 #include "base/strings/string_util.h" | 15 #include "base/strings/string_util.h" |
| 16 #include "base/time/time.h" | 16 #include "base/time/time.h" |
| 17 #include "components/history/core/browser/history_service.h" | 17 #include "components/history/core/browser/history_service.h" |
| 18 #include "components/precache/core/precache_database.h" | 18 #include "components/precache/core/precache_database.h" |
| 19 #include "components/precache/core/precache_switches.h" | 19 #include "components/precache/core/precache_switches.h" |
| 20 #include "components/precache/core/proto/unfinished_work.pb.h" | 20 #include "components/precache/core/proto/unfinished_work.pb.h" |
| 21 #include "components/prefs/pref_service.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/metrics_util.h" | 23 #include "components/variations/metrics_util.h" |
| 24 #include "components/variations/variations_associated_data.h" | 24 #include "components/variations/variations_associated_data.h" |
| 25 #include "content/public/browser/browser_context.h" | 25 #include "content/public/browser/browser_context.h" |
| 26 #include "content/public/browser/browser_thread.h" | 26 #include "content/public/browser/browser_thread.h" |
| 27 #include "content/public/browser/storage_partition.h" | 27 #include "content/public/browser/storage_partition.h" |
| 28 #include "net/base/network_change_notifier.h" | 28 #include "net/base/network_change_notifier.h" |
| 29 | 29 |
| 30 using content::BrowserThread; | 30 using content::BrowserThread; |
| 31 | 31 |
| 32 namespace { | 32 namespace { |
| (...skipping 313 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 346 this)); | 346 this)); |
| 347 precache_fetcher_->Start(); | 347 precache_fetcher_->Start(); |
| 348 } | 348 } |
| 349 | 349 |
| 350 void PrecacheManager::OnHostsReceivedThenDone( | 350 void PrecacheManager::OnHostsReceivedThenDone( |
| 351 const history::TopHostsList& host_counts) { | 351 const history::TopHostsList& host_counts) { |
| 352 OnDone(); | 352 OnDone(); |
| 353 } | 353 } |
| 354 | 354 |
| 355 } // namespace precache | 355 } // namespace precache |
| OLD | NEW |