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

Side by Side Diff: chrome/browser/android/offline_pages/request_coordinator_factory.cc

Issue 2489443002: Move all components/offline_pages/ files into component/offline_pages/core (Closed)
Patch Set: rebase Created 4 years 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 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 37 matching lines...) Expand 10 before | Expand all | Expand 10 after
75 std::move(scheduler), network_quality_estimator); 75 std::move(scheduler), network_quality_estimator);
76 76
77 DownloadNotifyingObserver::CreateAndStartObserving( 77 DownloadNotifyingObserver::CreateAndStartObserving(
78 request_coordinator, 78 request_coordinator,
79 base::MakeUnique<android::OfflinePageNotificationBridge>()); 79 base::MakeUnique<android::OfflinePageNotificationBridge>());
80 80
81 return request_coordinator; 81 return request_coordinator;
82 } 82 }
83 83
84 } // namespace offline_pages 84 } // namespace offline_pages
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698