diff options
author | Gilad Arnold <garnold@chromium.org> | 2014-10-02 10:34:54 -0700 |
---|---|---|
committer | chrome-internal-fetch <chrome-internal-fetch@google.com> | 2014-10-18 01:39:10 +0000 |
commit | 519cfc71f0a2f7f01adb51acd19b5cd23d2c93a2 (patch) | |
tree | 32b424d8c72226e13650ef16197614c19545b46e /payload_state_interface.h | |
parent | d78caf9baf2026a356130f4754af2c504f423945 (diff) |
update_engine: Move scattering wait period store/load to PayloadState.
This is needed for decoupling the inference/use of this value from its
storing/loading, as we shift the former into the Update Manager.
BUG=chromium:384087
TEST=Unit tests.
Change-Id: I4b278dc817b6f148d5638122f934e9d1e280bfae
Reviewed-on: https://chromium-review.googlesource.com/221250
Reviewed-by: Alex Vakulenko <avakulenko@chromium.org>
Tested-by: Gilad Arnold <garnold@chromium.org>
Reviewed-by: Alex Deymo <deymo@chromium.org>
Commit-Queue: Gilad Arnold <garnold@chromium.org>
Diffstat (limited to 'payload_state_interface.h')
-rw-r--r-- | payload_state_interface.h | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/payload_state_interface.h b/payload_state_interface.h index 36b8130c..c706e984 100644 --- a/payload_state_interface.h +++ b/payload_state_interface.h @@ -163,6 +163,12 @@ class PayloadStateInterface { // Gets the value previously set with SetUsingP2PForDownloading(). virtual bool GetUsingP2PForDownloading() = 0; + + // Returns the current (persisted) scattering wallclock-based wait period. + virtual base::TimeDelta GetScatteringWaitPeriod() = 0; + + // Sets and persists the scattering wallclock-based wait period. + virtual void SetScatteringWaitPeriod(base::TimeDelta wait_period) = 0; }; } // namespace chromeos_update_engine |