Index: components/offline_pages/background/request_coordinator.h |
diff --git a/components/offline_pages/background/request_coordinator.h b/components/offline_pages/background/request_coordinator.h |
index d130df002c45d79e744317f8c8faac2b56fba0f8..ba406a64c1d2ce6edcedbb41c5ce528ebf518d79 100644 |
--- a/components/offline_pages/background/request_coordinator.h |
+++ b/components/offline_pages/background/request_coordinator.h |
@@ -21,6 +21,7 @@ |
#include "components/offline_pages/background/request_notifier.h" |
#include "components/offline_pages/background/request_queue.h" |
#include "components/offline_pages/background/scheduler.h" |
+#include "net/nqe/network_quality_estimator.h" |
#include "url/gurl.h" |
namespace offline_pages { |
@@ -63,7 +64,8 @@ class RequestCoordinator : public KeyedService, |
RequestCoordinator(std::unique_ptr<OfflinerPolicy> policy, |
std::unique_ptr<OfflinerFactory> factory, |
std::unique_ptr<RequestQueue> queue, |
- std::unique_ptr<Scheduler> scheduler); |
+ std::unique_ptr<Scheduler> scheduler, |
+ net::NetworkQualityEstimator::NetworkQualityProvider* nqe); |
Pete Williamson
2016/09/16 22:26:01
nqe -> network_quality_estimator or network_qualit
dougarnett
2016/09/19 19:34:32
Done.
|
~RequestCoordinator() override; |
@@ -261,6 +263,9 @@ class RequestCoordinator : public KeyedService, |
current_conditions_.reset(new DeviceConditions(current_conditions)); |
} |
+ // KeyedService implementation: |
+ void Shutdown() override; |
+ |
friend class RequestCoordinatorTest; |
// The offliner can only handle one request at a time - if the offliner is |
@@ -291,6 +296,8 @@ class RequestCoordinator : public KeyedService, |
std::unique_ptr<RequestQueue> queue_; |
// Scheduler. Used to request a callback when network is available. Owned. |
std::unique_ptr<Scheduler> scheduler_; |
+ // Unowned pointer to the Network Quality Estimator. |
+ net::NetworkQualityEstimator::NetworkQualityProvider* nqe_; |
// Holds copy of the active request, if any. |
std::unique_ptr<SavePageRequest> active_request_; |
// Status of the most recent offlining. |