Chromium Code Reviews| 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..4b591ebd8591ba9f3a4ebaf38a25aa04b2eccbd9 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 DeviceConditions& GetCurrentDeviceConditions() = 0; |
|
dewittj
2017/01/30 19:18:02
const
Pete Williamson
2017/01/30 21:35:24
Done.
|
| }; |
| } // namespace offline_pages |