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

Unified Diff: update_attempter.h

Issue 3167039: AU: Simplify the automatic update check code a little. (Closed) Base URL: ssh://git@gitrw.chromium.org:9222/update_engine.git
Patch Set: Rename to avoid confusion. Created 10 years, 4 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
« no previous file with comments | « main.cc ('k') | update_attempter.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: update_attempter.h
diff --git a/update_attempter.h b/update_attempter.h
index b2ef3719fa37cf7de85bdb3399153aff60d38d13..1c9ad40577791b52cbf3f9a7050936ba8f893e42 100644
--- a/update_attempter.h
+++ b/update_attempter.h
@@ -88,6 +88,13 @@ class UpdateAttempter : public ActionProcessorDelegate,
// UPDATED_NEED_REBOOT. Returns true on sucess, false otherwise.
bool RebootIfNeeded();
+ // Kicks off the periodic update checks, if necessary.
+ void InitiatePeriodicUpdateChecks();
+
+ // Schedules the next periodic update check |seconds| from now. Note
+ // that the actual timeout will be fuzzed.
+ void SchedulePeriodicUpdateCheck(int seconds);
+
// DownloadActionDelegate methods
void SetDownloadStatus(bool active);
void BytesReceived(uint64_t bytes_received, uint64_t total);
« no previous file with comments | « main.cc ('k') | update_attempter.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698