Chromium Code Reviews| OLD | NEW |
|---|---|
| 1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. |
| 2 // Use of this source code is governed by a BSD-style license that can be | 2 // Use of this source code is governed by a BSD-style license that can be |
| 3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
| 4 | 4 |
| 5 #ifndef CHROME_BROWSER_CHROMEOS_LOGIN_UPDATE_SCREEN_H_ | 5 #ifndef CHROME_BROWSER_CHROMEOS_LOGIN_UPDATE_SCREEN_H_ |
| 6 #define CHROME_BROWSER_CHROMEOS_LOGIN_UPDATE_SCREEN_H_ | 6 #define CHROME_BROWSER_CHROMEOS_LOGIN_UPDATE_SCREEN_H_ |
| 7 #pragma once | 7 #pragma once |
| 8 | 8 |
| 9 #include <set> | 9 #include <set> |
| 10 | 10 |
| 11 #include "base/compiler_specific.h" | 11 #include "base/compiler_specific.h" |
| 12 #include "base/gtest_prod_util.h" | 12 #include "base/gtest_prod_util.h" |
| 13 #include "base/memory/scoped_ptr.h" | 13 #include "base/memory/scoped_ptr.h" |
| 14 #include "base/time.h" | |
| 14 #include "base/timer.h" | 15 #include "base/timer.h" |
| 15 #include "chrome/browser/chromeos/login/update_screen_actor.h" | 16 #include "chrome/browser/chromeos/login/update_screen_actor.h" |
| 16 #include "chrome/browser/chromeos/login/wizard_screen.h" | 17 #include "chrome/browser/chromeos/login/wizard_screen.h" |
| 17 #include "chromeos/dbus/update_engine_client.h" | 18 #include "chromeos/dbus/update_engine_client.h" |
| 18 | 19 |
| 19 namespace chromeos { | 20 namespace chromeos { |
| 20 | 21 |
| 21 class ScreenObserver; | 22 class ScreenObserver; |
| 22 | 23 |
| 23 // Controller for the update screen. It does not depend on the specific | 24 // Controller for the update screen. It does not depend on the specific |
| (...skipping 76 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 100 // Note, this is false by default. | 101 // Note, this is false by default. |
| 101 bool is_ignore_update_deadlines_; | 102 bool is_ignore_update_deadlines_; |
| 102 // Whether the update screen is shown. | 103 // Whether the update screen is shown. |
| 103 bool is_shown_; | 104 bool is_shown_; |
| 104 // Ignore fist IDLE status that is sent before update screen initiated check. | 105 // Ignore fist IDLE status that is sent before update screen initiated check. |
| 105 bool ignore_idle_status_; | 106 bool ignore_idle_status_; |
| 106 | 107 |
| 107 // Keeps actor which is delegated with all showing operations. | 108 // Keeps actor which is delegated with all showing operations. |
| 108 UpdateScreenActor* actor_; | 109 UpdateScreenActor* actor_; |
| 109 | 110 |
| 111 // Time of the first notification of the downloading stage. | |
| 112 base::Time download_start_time_; | |
| 113 double download_start_progress_; | |
| 114 // Time of the last notification of the downloading stage. | |
|
Nikita (slow)
2012/05/10 16:04:31
nit: Insert empty line before
ygorshenin1
2012/05/11 12:42:50
Done.
| |
| 115 base::Time download_last_time_; | |
| 116 double download_last_progress_; | |
| 117 bool is_download_average_speed_computed_; | |
| 118 double download_average_speed_; | |
| 119 | |
| 110 DISALLOW_COPY_AND_ASSIGN(UpdateScreen); | 120 DISALLOW_COPY_AND_ASSIGN(UpdateScreen); |
| 111 }; | 121 }; |
| 112 | 122 |
| 113 } // namespace chromeos | 123 } // namespace chromeos |
| 114 | 124 |
| 115 #endif // CHROME_BROWSER_CHROMEOS_LOGIN_UPDATE_SCREEN_H_ | 125 #endif // CHROME_BROWSER_CHROMEOS_LOGIN_UPDATE_SCREEN_H_ |
| OLD | NEW |