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

Side by Side Diff: chrome/browser/android/offline_pages/evaluation/evaluation_test_scheduler.h

Issue 2662103003: Always get device conditions from Java for every attempt. (Closed)
Patch Set: Created 3 years, 10 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 unified diff | Download patch
OLDNEW
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/core/background/scheduler.h" 8 #include "components/offline_pages/core/background/scheduler.h"
9 9
10 namespace offline_pages { 10 namespace offline_pages {
11 11
12 class RequestCoordinator; 12 class RequestCoordinator;
13 13
14 namespace android { 14 namespace android {
15 15
16 class EvaluationTestScheduler : public Scheduler { 16 class EvaluationTestScheduler : public Scheduler {
17 public: 17 public:
18 EvaluationTestScheduler();
19 ~EvaluationTestScheduler() override;
20
18 // Scheduler implementation. 21 // Scheduler implementation.
19 void Schedule(const TriggerConditions& trigger_conditions) override; 22 void Schedule(const TriggerConditions& trigger_conditions) override;
20 void BackupSchedule(const TriggerConditions& trigger_conditions, 23 void BackupSchedule(const TriggerConditions& trigger_conditions,
21 long delay_in_seconds) override; 24 long delay_in_seconds) override;
22 void Unschedule() override; 25 void Unschedule() override;
26 DeviceConditions& GetCurrentDeviceConditions() override;
23 27
24 // Callback used by user request. 28 // Callback used by user request.
25 void ImmediateScheduleCallback(bool result); 29 void ImmediateScheduleCallback(bool result);
26 30
27 private: 31 private:
28 RequestCoordinator* coordinator_; 32 RequestCoordinator* coordinator_;
33 DeviceConditions device_conditions_;
29 }; 34 };
30 35
31 } // namespace android 36 } // namespace android
32 } // namespace offline_pages 37 } // namespace offline_pages
33 38
34 #endif // CHROME_BROWSER_ANDROID_OFFLINE_PAGES_EVALUATION_EVALUATION_TEST_SCHED ULER_H_ 39 #endif // CHROME_BROWSER_ANDROID_OFFLINE_PAGES_EVALUATION_EVALUATION_TEST_SCHED ULER_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698