| 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 "chrome/browser/android/offline_pages/background_scheduler_bridge.h" | 12 #include "chrome/browser/android/offline_pages/background_scheduler_bridge.h" |
| 13 #include "chrome/browser/android/offline_pages/downloads/offline_page_notificati
on_bridge.h" | 13 #include "chrome/browser/android/offline_pages/downloads/offline_page_notificati
on_bridge.h" |
| 14 #include "chrome/browser/android/offline_pages/prerendering_offliner_factory.h" | 14 #include "chrome/browser/android/offline_pages/prerendering_offliner_factory.h" |
| 15 #include "chrome/browser/net/nqe/ui_network_quality_estimator_service.h" | 15 #include "chrome/browser/net/nqe/ui_network_quality_estimator_service.h" |
| 16 #include "chrome/browser/net/nqe/ui_network_quality_estimator_service_factory.h" | 16 #include "chrome/browser/net/nqe/ui_network_quality_estimator_service_factory.h" |
| 17 #include "chrome/browser/profiles/profile.h" | 17 #include "chrome/browser/profiles/profile.h" |
| 18 #include "chrome/common/chrome_constants.h" | 18 #include "chrome/common/chrome_constants.h" |
| 19 #include "components/keyed_service/content/browser_context_dependency_manager.h" | 19 #include "components/keyed_service/content/browser_context_dependency_manager.h" |
| 20 #include "components/offline_pages/background/offliner_factory.h" | 20 #include "components/offline_pages/core/background/offliner_factory.h" |
| 21 #include "components/offline_pages/background/offliner_policy.h" | 21 #include "components/offline_pages/core/background/offliner_policy.h" |
| 22 #include "components/offline_pages/background/request_coordinator.h" | 22 #include "components/offline_pages/core/background/request_coordinator.h" |
| 23 #include "components/offline_pages/background/request_queue.h" | 23 #include "components/offline_pages/core/background/request_queue.h" |
| 24 #include "components/offline_pages/background/request_queue_store.h" | 24 #include "components/offline_pages/core/background/request_queue_store.h" |
| 25 #include "components/offline_pages/background/request_queue_store_sql.h" | 25 #include "components/offline_pages/core/background/request_queue_store_sql.h" |
| 26 #include "components/offline_pages/background/scheduler.h" | 26 #include "components/offline_pages/core/background/scheduler.h" |
| 27 #include "components/offline_pages/downloads/download_notifying_observer.h" | 27 #include "components/offline_pages/core/downloads/download_notifying_observer.h" |
| 28 #include "content/public/browser/browser_thread.h" | 28 #include "content/public/browser/browser_thread.h" |
| 29 #include "net/nqe/network_quality_estimator.h" | 29 #include "net/nqe/network_quality_estimator.h" |
| 30 | 30 |
| 31 namespace offline_pages { | 31 namespace offline_pages { |
| 32 | 32 |
| 33 RequestCoordinatorFactory::RequestCoordinatorFactory() | 33 RequestCoordinatorFactory::RequestCoordinatorFactory() |
| 34 : BrowserContextKeyedServiceFactory( | 34 : BrowserContextKeyedServiceFactory( |
| 35 "OfflineRequestCoordinator", | 35 "OfflineRequestCoordinator", |
| 36 BrowserContextDependencyManager::GetInstance()) {} | 36 BrowserContextDependencyManager::GetInstance()) {} |
| 37 | 37 |
| (...skipping 43 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 81 return request_coordinator; | 81 return request_coordinator; |
| 82 } | 82 } |
| 83 | 83 |
| 84 content::BrowserContext* RequestCoordinatorFactory::GetBrowserContextToUse( | 84 content::BrowserContext* RequestCoordinatorFactory::GetBrowserContextToUse( |
| 85 content::BrowserContext* context) const { | 85 content::BrowserContext* context) const { |
| 86 // TODO(petewil): Make sure we support incognito properly. | 86 // TODO(petewil): Make sure we support incognito properly. |
| 87 return context; | 87 return context; |
| 88 } | 88 } |
| 89 | 89 |
| 90 } // namespace offline_pages | 90 } // namespace offline_pages |
| OLD | NEW |