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

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

Issue 10389064: Added estimated time remaining on AU. (Closed) Base URL: http://git.chromium.org/chromium/src.git@master
Patch Set: Fixed license headers. 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
Index: chrome/browser/chromeos/login/update_screen_actor.h
diff --git a/chrome/browser/chromeos/login/update_screen_actor.h b/chrome/browser/chromeos/login/update_screen_actor.h
index b4fbbb6e2496ab66d0a9d9d72211076abe04fa8f..106e3ad6bcb23df6b5580ac16b7aaf2121252604 100644
--- a/chrome/browser/chromeos/login/update_screen_actor.h
+++ b/chrome/browser/chromeos/login/update_screen_actor.h
@@ -1,4 +1,4 @@
-// Copyright (c) 2011 The Chromium Authors. All rights reserved.
+// Copyright (c) 2012 The Chromium Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
@@ -6,6 +6,9 @@
#define CHROME_BROWSER_CHROMEOS_LOGIN_UPDATE_SCREEN_ACTOR_H_
#pragma once
+#include <string>
+#include "base/time.h"
Nikita (slow) 2012/05/10 16:04:31 nit: insert empty line between different include t
ygorshenin1 2012/05/11 12:42:50 Done.
+
namespace chromeos {
class UpdateScreenActor {
@@ -37,9 +40,18 @@ class UpdateScreenActor {
// Sets current progress in percents.
virtual void SetProgress(int progress) = 0;
+ // Sets current estimation for time left in the downloading stage.
+ virtual void SetEstimatedTimeLeft(const base::TimeDelta& time) = 0;
+
+ // Sets current downloading rate. |rate| must be in B/s.
+ virtual void SetDownloadingRate(double rate) = 0;
+
// Shows screen curtains.
virtual void ShowCurtain(bool enable) = 0;
+ // Shows update downloading stats.
+ virtual void ShowUpdateDownloadingStats(bool enable) = 0;
+
// Shows label for "Preparing updates" state.
virtual void ShowPreparingUpdatesInfo(bool visible) = 0;
};

Powered by Google App Engine
This is Rietveld 408576698