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

Unified Diff: chrome/browser/ui/webui/help/version_updater.h

Issue 2873193002: Make update over cellular an option for user (Closed)
Patch Set: Put code in CHROME_OS wrapper to fix trybot error Created 3 years, 7 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 | « chrome/browser/ui/webui/help/help_handler.cc ('k') | chrome/browser/ui/webui/help/version_updater_basic.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/ui/webui/help/version_updater.h
diff --git a/chrome/browser/ui/webui/help/version_updater.h b/chrome/browser/ui/webui/help/version_updater.h
index f12e367bcc588bba3ccb8d8ce362ebc7de11b7f8..d36b26fb472d4dcb7dfffc33b9772361da6463d8 100644
--- a/chrome/browser/ui/webui/help/version_updater.h
+++ b/chrome/browser/ui/webui/help/version_updater.h
@@ -25,6 +25,7 @@ class VersionUpdater {
// Update process state machine.
enum Status {
CHECKING,
+ NEED_PERMISSION_TO_UPDATE,
UPDATING,
NEARLY_UPDATED,
UPDATED,
@@ -53,8 +54,13 @@ class VersionUpdater {
// Used to update the client of status changes. int parameter is the progress
// and should only be non-zero for the UPDATING state.
+ // std::string parameter is the version of the available update and should be
+ // empty string when update is not available.
+ // int64_t parameter is the size in bytes of the available update and should
+ // be 0 when update is not available.
// base::string16 parameter is a message explaining a failure.
- typedef base::Callback<void(Status, int, const base::string16&)>
+ typedef base::Callback<
+ void(Status, int, const std::string&, int64_t, const base::string16&)>
StatusCallback;
// Used to show or hide the promote UI elements. Mac-only.
@@ -86,6 +92,14 @@ class VersionUpdater {
virtual void GetChannel(bool get_current_channel,
const ChannelCallback& callback) = 0;
virtual void GetEolStatus(const EolStatusCallback& callback) = 0;
+
+ // Set the update over cellular target in |target_version| and |target_size|
+ // arguments maintained by update engine. The arguments are later used by
+ // update engine to match the given target with the server head and to allow
+ // update over cellular to this given target.
+ virtual void SetUpdateOverCellularTarget(const StatusCallback& callback,
+ const std::string& target_version,
+ int64_t target_size) = 0;
#endif
};
« no previous file with comments | « chrome/browser/ui/webui/help/help_handler.cc ('k') | chrome/browser/ui/webui/help/version_updater_basic.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698