OLD | NEW |
1 // Copyright 2016 The Chromium Authors. All rights reserved. | 1 // Copyright 2016 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/android/offline_pages/request_coordinator_factory.h" | 5 #include "chrome/browser/android/offline_pages/request_coordinator_factory.h" |
6 | 6 |
7 #include <memory> | 7 #include <memory> |
8 | 8 |
9 #include "base/memory/ptr_util.h" | 9 #include "base/memory/ptr_util.h" |
10 #include "base/memory/singleton.h" | 10 #include "base/memory/singleton.h" |
11 #include "base/sequenced_task_runner.h" | 11 #include "base/sequenced_task_runner.h" |
12 #include "base/threading/sequenced_worker_pool.h" | |
13 #include "chrome/browser/android/offline_pages/background_loader_offliner.h" | 12 #include "chrome/browser/android/offline_pages/background_loader_offliner.h" |
14 #include "chrome/browser/android/offline_pages/background_scheduler_bridge.h" | 13 #include "chrome/browser/android/offline_pages/background_scheduler_bridge.h" |
15 #include "chrome/browser/android/offline_pages/downloads/offline_page_notificati
on_bridge.h" | 14 #include "chrome/browser/android/offline_pages/downloads/offline_page_notificati
on_bridge.h" |
16 #include "chrome/browser/android/offline_pages/offline_page_model_factory.h" | 15 #include "chrome/browser/android/offline_pages/offline_page_model_factory.h" |
17 #include "chrome/browser/android/offline_pages/prerendering_offliner.h" | 16 #include "chrome/browser/android/offline_pages/prerendering_offliner.h" |
18 #include "chrome/browser/net/nqe/ui_network_quality_estimator_service.h" | 17 #include "chrome/browser/net/nqe/ui_network_quality_estimator_service.h" |
19 #include "chrome/browser/net/nqe/ui_network_quality_estimator_service_factory.h" | 18 #include "chrome/browser/net/nqe/ui_network_quality_estimator_service_factory.h" |
20 #include "chrome/browser/profiles/profile.h" | 19 #include "chrome/browser/profiles/profile.h" |
21 #include "chrome/common/chrome_constants.h" | 20 #include "chrome/common/chrome_constants.h" |
22 #include "components/keyed_service/content/browser_context_dependency_manager.h" | 21 #include "components/keyed_service/content/browser_context_dependency_manager.h" |
(...skipping 66 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
89 std::move(scheduler), network_quality_estimator); | 88 std::move(scheduler), network_quality_estimator); |
90 | 89 |
91 DownloadNotifyingObserver::CreateAndStartObserving( | 90 DownloadNotifyingObserver::CreateAndStartObserving( |
92 request_coordinator, | 91 request_coordinator, |
93 base::MakeUnique<android::OfflinePageNotificationBridge>()); | 92 base::MakeUnique<android::OfflinePageNotificationBridge>()); |
94 | 93 |
95 return request_coordinator; | 94 return request_coordinator; |
96 } | 95 } |
97 | 96 |
98 } // namespace offline_pages | 97 } // namespace offline_pages |
OLD | NEW |