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

Unified Diff: components/offline_pages/background/request_coordinator.h

Issue 2087633002: Defines TriggerConditions and plumbs up to BackgroundScheduler (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Exposed TriggerConditions object for test Created 4 years, 6 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/background/request_coordinator.h
diff --git a/components/offline_pages/background/request_coordinator.h b/components/offline_pages/background/request_coordinator.h
index ffbb8570499257b13d5d6f8b66ab650d85d5e887..675075b62265535376f840ad6ea6793df45a34e3 100644
--- a/components/offline_pages/background/request_coordinator.h
+++ b/components/offline_pages/background/request_coordinator.h
@@ -14,6 +14,7 @@
#include "components/offline_pages/background/device_conditions.h"
#include "components/offline_pages/background/offliner.h"
#include "components/offline_pages/background/request_queue.h"
+#include "components/offline_pages/background/scheduler.h"
#include "url/gurl.h"
namespace offline_pages {
@@ -57,6 +58,9 @@ class RequestCoordinator : public KeyedService {
// is stopped or complete.
void StopProcessing();
+ // TODO(dougarnett): Move to OfflinerPolicy in some form.
+ Scheduler::TriggerConditions const& GetTriggerConditionsForUserRequest();
+
// A way for tests to set the callback in use when an operation is over.
void SetProcessingCallbackForTest(const base::Callback<void(bool)> callback) {
scheduler_callback_ = callback;

Powered by Google App Engine
This is Rietveld 408576698