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

Unified Diff: components/offline_pages/background/request_coordinator.h

Issue 2342443006: [Offline pages] Use the new policy bits (Closed)
Patch Set: i think i got it! Made sure it compiles Created 4 years, 2 months 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 side-by-side diff with in-line comments
Download patch
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 830d605e57819174e291103bb0f83ca8b3704ba9..8d79576f800e868ca173c66f7a25a88c1f3e0476 100644
--- a/components/offline_pages/background/request_coordinator.h
+++ b/components/offline_pages/background/request_coordinator.h
@@ -33,6 +33,7 @@ class Offliner;
class RequestPicker;
class SavePageRequest;
class Scheduler;
+class ClientPolicyController;
// Coordinates queueing and processing save page later requests.
class RequestCoordinator : public KeyedService,
@@ -142,6 +143,8 @@ class RequestCoordinator : public KeyedService,
OfflinerPolicy* policy() { return policy_.get(); }
+ ClientPolicyController* GetPolicyController();
+
// Returns the status of the most recent offlining.
Offliner::RequestStatus last_offlining_status() {
return last_offlining_status_;
@@ -298,6 +301,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_;
+ // Controller of client policies. Owned.
+ std::unique_ptr<ClientPolicyController> policy_controller_;
// Unowned pointer to the Network Quality Estimator.
net::NetworkQualityEstimator::NetworkQualityProvider*
network_quality_estimator_;

Powered by Google App Engine
This is Rietveld 408576698