| Index: components/offline_pages/background/scheduler.h
|
| diff --git a/components/offline_pages/background/scheduler.h b/components/offline_pages/background/scheduler.h
|
| index 76a185f6699a296bc33f7a784958f5649274f234..8aab4c3576d2bbdfeb56133e478de8704e47cb93 100644
|
| --- a/components/offline_pages/background/scheduler.h
|
| +++ b/components/offline_pages/background/scheduler.h
|
| @@ -20,13 +20,14 @@ class Scheduler {
|
| Scheduler() {}
|
| virtual ~Scheduler() {}
|
|
|
| - // Ensures that the system has a task scheduled for |trigger_conditions|.
|
| + // Schedules the triggering of a task subject to |trigger_conditions|.
|
| // This may overwrite any previous scheduled task with a new one for
|
| - // these conditions.
|
| - virtual void EnsureScheduled(const TriggerCondition& trigger_condition) = 0;
|
| + // these conditions. That is, only one set of triggering conditions
|
| + // is scheduled at a time.
|
| + virtual void Schedule(const TriggerCondition& trigger_condition) = 0;
|
|
|
| - // Clears the currently scheduled task, if any.
|
| - virtual void ClearScheduled() = 0;
|
| + // Unschedules the currently scheduled task, if any.
|
| + virtual void Unschedule() = 0;
|
| };
|
|
|
| } // namespace offline_pages
|
|
|