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

Unified Diff: components/offline_pages/core/background/scheduler_stub.h

Issue 2662103003: Always get device conditions from Java for every attempt. (Closed)
Patch Set: Created 3 years, 11 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/core/background/scheduler_stub.h
diff --git a/components/offline_pages/core/background/scheduler_stub.h b/components/offline_pages/core/background/scheduler_stub.h
index 7300468422ecb549ca15f574c3f85aae3de6be10..fa57d1feb9c973326ebe4b556c5a6fe191a3a16c 100644
--- a/components/offline_pages/core/background/scheduler_stub.h
+++ b/components/offline_pages/core/background/scheduler_stub.h
@@ -24,20 +24,27 @@ class SchedulerStub : public Scheduler {
// Unschedules the currently scheduled task, if any.
void Unschedule() override;
+ // Get the current device conditions from the android APIs.
+ const DeviceConditions& GetCurrentDeviceConditions() override;
+
bool schedule_called() const { return schedule_called_; }
bool backup_schedule_called() const { return backup_schedule_called_; }
bool unschedule_called() const { return unschedule_called_; }
- TriggerConditions const* conditions() const { return &conditions_; }
+ TriggerConditions const* trigger_conditions() const {
+ return &trigger_conditions_;
+ }
private:
bool schedule_called_;
bool backup_schedule_called_;
bool unschedule_called_;
+ bool get_current_device_conditions_called_;
long schedule_delay_;
- TriggerConditions conditions_;
+ DeviceConditions device_conditions_;
+ TriggerConditions trigger_conditions_;
};
} // namespace offline_pages
« no previous file with comments | « components/offline_pages/core/background/scheduler.h ('k') | components/offline_pages/core/background/scheduler_stub.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698