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

Unified Diff: chrome/browser/chromeos/login/update_screen.h

Issue 10389064: Added estimated time remaining on AU. (Closed) Base URL: http://git.chromium.org/chromium/src.git@master
Patch Set: Issues are fixed, sync. Created 8 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/chromeos/login/mock_update_screen.h ('k') | chrome/browser/chromeos/login/update_screen.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/chromeos/login/update_screen.h
diff --git a/chrome/browser/chromeos/login/update_screen.h b/chrome/browser/chromeos/login/update_screen.h
index 39e8966e598f33b249e38795a65f5f1188a5f8f4..f487aa6951c198937d37bd0b5d3a861fc3b18439 100644
--- a/chrome/browser/chromeos/login/update_screen.h
+++ b/chrome/browser/chromeos/login/update_screen.h
@@ -11,6 +11,7 @@
#include "base/compiler_specific.h"
#include "base/gtest_prod_util.h"
#include "base/memory/scoped_ptr.h"
+#include "base/time.h"
#include "base/timer.h"
#include "chrome/browser/chromeos/login/update_screen_actor.h"
#include "chrome/browser/chromeos/login/wizard_screen.h"
@@ -69,6 +70,10 @@ class UpdateScreen: public UpdateEngineClient::Observer,
FRIEND_TEST_ALL_PREFIXES(UpdateScreenTest, TestBasic);
FRIEND_TEST_ALL_PREFIXES(UpdateScreenTest, TestUpdateAvailable);
+ // Updates downloading stats (remaining time and downloading
+ // progress) on the AU screen.
+ void UpdateDownloadingStats(const UpdateEngineClient::Status& status);
+
// Returns true if there is critical system update that requires installation
// and immediate reboot.
bool HasCriticalUpdate();
@@ -107,6 +112,17 @@ class UpdateScreen: public UpdateEngineClient::Observer,
// Keeps actor which is delegated with all showing operations.
UpdateScreenActor* actor_;
+ // Time of the first notification from the downloading stage.
+ base::Time download_start_time_;
+ double download_start_progress_;
+
+ // Time of the last notification from the downloading stage.
+ base::Time download_last_time_;
+ double download_last_progress_;
+
+ bool is_download_average_speed_computed_;
+ double download_average_speed_;
+
DISALLOW_COPY_AND_ASSIGN(UpdateScreen);
};
« no previous file with comments | « chrome/browser/chromeos/login/mock_update_screen.h ('k') | chrome/browser/chromeos/login/update_screen.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698