| Index: components/offline_pages/core/background/scheduler.h
|
| diff --git a/components/offline_pages/core/background/scheduler.h b/components/offline_pages/core/background/scheduler.h
|
| index 7ce0a456e6ef6523e013fe6b2f08b1208084ba3e..818c216df06f209d3cc3abf4cf4b74f57efd6d5d 100644
|
| --- a/components/offline_pages/core/background/scheduler.h
|
| +++ b/components/offline_pages/core/background/scheduler.h
|
| @@ -5,6 +5,8 @@
|
| #ifndef COMPONENTS_OFFLINE_PAGES_CORE_BACKGROUND_SCHEDULER_H_
|
| #define COMPONENTS_OFFLINE_PAGES_CORE_BACKGROUND_SCHEDULER_H_
|
|
|
| +#include "components/offline_pages/core/background/device_conditions.h"
|
| +
|
| namespace offline_pages {
|
|
|
| // Interface of a class responsible for scheduling a task to initiate
|
| @@ -40,6 +42,9 @@ class Scheduler {
|
|
|
| // Unschedules the currently scheduled task, if any.
|
| virtual void Unschedule() = 0;
|
| +
|
| + // Get the current device conditions from the android APIs.
|
| + virtual const DeviceConditions& GetCurrentDeviceConditions() = 0;
|
| };
|
|
|
| } // namespace offline_pages
|
|
|