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

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

Issue 2659813006: Always get device conditions from Java for every attempt. (Closed)
Patch Set: fixes per DewittJ 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.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

Powered by Google App Engine
This is Rietveld 408576698