| OLD | NEW |
| 1 // Copyright 2016 The Chromium Authors. All rights reserved. | 1 // Copyright 2016 The Chromium Authors. All rights reserved. |
| 2 // Use of this source code is governed by a BSD-style license that can be | 2 // Use of this source code is governed by a BSD-style license that can be |
| 3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
| 4 | 4 |
| 5 #ifndef CHROME_BROWSER_ANDROID_OFFLINE_PAGES_EVALUATION_EVALUATION_TEST_SCHEDULE
R_H_ | 5 #ifndef CHROME_BROWSER_ANDROID_OFFLINE_PAGES_EVALUATION_EVALUATION_TEST_SCHEDULE
R_H_ |
| 6 #define CHROME_BROWSER_ANDROID_OFFLINE_PAGES_EVALUATION_EVALUATION_TEST_SCHEDULE
R_H_ | 6 #define CHROME_BROWSER_ANDROID_OFFLINE_PAGES_EVALUATION_EVALUATION_TEST_SCHEDULE
R_H_ |
| 7 | 7 |
| 8 #include "components/offline_pages/background/scheduler.h" | 8 #include "components/offline_pages/background/scheduler.h" |
| 9 #include "components/offline_pages/offline_event_logger.h" |
| 9 | 10 |
| 10 namespace offline_pages { | 11 namespace offline_pages { |
| 11 namespace android { | 12 namespace android { |
| 12 | 13 |
| 13 class EvaluationTestScheduler : public Scheduler { | 14 class EvaluationTestScheduler : public Scheduler { |
| 14 public: | 15 public: |
| 15 // Scheduler implementation. | 16 // Scheduler implementation. |
| 16 void Schedule(const TriggerConditions& trigger_conditions) override; | 17 void Schedule(const TriggerConditions& trigger_conditions) override; |
| 17 void BackupSchedule(const TriggerConditions& trigger_conditions, | 18 void BackupSchedule(const TriggerConditions& trigger_conditions, |
| 18 long delay_in_seconds) override; | 19 long delay_in_seconds) override; |
| 19 void Unschedule() override; | 20 void Unschedule() override; |
| 20 | 21 |
| 21 // Callback used by user request. | 22 // Callback used by user request. |
| 22 void ImmediateScheduleCallback(bool result); | 23 void ImmediateScheduleCallback(bool result); |
| 23 }; | 24 }; |
| 24 | 25 |
| 25 } // namespace android | 26 } // namespace android |
| 26 } // namespace offline_pages | 27 } // namespace offline_pages |
| 27 | 28 |
| 28 #endif // CHROME_BROWSER_ANDROID_OFFLINE_PAGES_EVALUATION_EVALUATION_TEST_SCHED
ULER_H_ | 29 #endif // CHROME_BROWSER_ANDROID_OFFLINE_PAGES_EVALUATION_EVALUATION_TEST_SCHED
ULER_H_ |
| OLD | NEW |