OLD | NEW |
1 // Copyright (c) 2010 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2010 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 "base/timer.h" | 9 #include "base/timer.h" |
10 #include "chrome/browser/chromeos/cros/update_library.h" | 10 #include "chrome/browser/chromeos/cros/update_library.h" |
(...skipping 18 matching lines...) Expand all Loading... |
29 virtual ~UpdateScreen(); | 29 virtual ~UpdateScreen(); |
30 | 30 |
31 // UpdateLibrary::Observer implementation: | 31 // UpdateLibrary::Observer implementation: |
32 virtual void UpdateStatusChanged(UpdateLibrary* library); | 32 virtual void UpdateStatusChanged(UpdateLibrary* library); |
33 | 33 |
34 // Overridden from UpdateController: | 34 // Overridden from UpdateController: |
35 virtual void StartUpdate(); | 35 virtual void StartUpdate(); |
36 virtual void CancelUpdate(); | 36 virtual void CancelUpdate(); |
37 | 37 |
38 // Reports update results to the ScreenObserver. | 38 // Reports update results to the ScreenObserver. |
39 virtual void ExitUpdate(); | 39 // |forced| should be set to true when calling this method and update status |
| 40 // is not one of UPDATE_STATUS_IDLE, UPDATE_STATUS_ERROR, |
| 41 // UPDATE_STATUS_REPORTING_ERROR_EVENT. |
| 42 virtual void ExitUpdate(bool forced); |
40 | 43 |
41 // Maximal curtain time get/set, in seconds. | 44 // Maximal curtain time get/set, in seconds. |
42 int maximal_curtain_time() const { return maximal_curtain_time_; } | 45 int maximal_curtain_time() const { return maximal_curtain_time_; } |
43 void SetMaximalCurtainTime(int seconds); | 46 void SetMaximalCurtainTime(int seconds); |
44 | 47 |
45 // Reboot check delay get/set, in seconds. | 48 // Reboot check delay get/set, in seconds. |
46 int reboot_check_delay() const { return reboot_check_delay_; } | 49 int reboot_check_delay() const { return reboot_check_delay_; } |
47 void SetRebootCheckDelay(int seconds); | 50 void SetRebootCheckDelay(int seconds); |
48 | 51 |
49 // Returns true if there is critical system update that requires installation | 52 // Returns true if there is critical system update that requires installation |
(...skipping 33 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
83 | 86 |
84 // Is all updates critical? If true, update deadlines are ignored. | 87 // Is all updates critical? If true, update deadlines are ignored. |
85 bool is_all_updates_critical_; | 88 bool is_all_updates_critical_; |
86 | 89 |
87 DISALLOW_COPY_AND_ASSIGN(UpdateScreen); | 90 DISALLOW_COPY_AND_ASSIGN(UpdateScreen); |
88 }; | 91 }; |
89 | 92 |
90 } // namespace chromeos | 93 } // namespace chromeos |
91 | 94 |
92 #endif // CHROME_BROWSER_CHROMEOS_LOGIN_UPDATE_SCREEN_H_ | 95 #endif // CHROME_BROWSER_CHROMEOS_LOGIN_UPDATE_SCREEN_H_ |
OLD | NEW |