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

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

Issue 2795603002: Add an update warning for downloading over mobile data (Closed)
Patch Set: Ignore this as I uploaded a new CL 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..4111b3389b5c32e62d69a0be4664e5d7d3696806 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,16 @@ 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&,
+ const int64_t,
+ const base::string16&)>
StatusCallback;
// Used to show or hide the promote UI elements. Mac-only.
@@ -75,6 +84,14 @@ class VersionUpdater {
virtual void CheckForUpdate(const StatusCallback& status_callback,
const PromoteCallback& promote_callback) = 0;
+ // Set the update over cellular target in preferences maintained by update
+ // engine. The preferences are latter 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;
+
#if defined(OS_MACOSX)
// Make updates available for all users.
virtual void PromoteUpdater() const = 0;
« 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