| OLD | NEW |
| 1 // Copyright 2013 The Chromium Authors. All rights reserved. | 1 // Copyright 2013 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_SYSTEM_AUTOMATIC_REBOOT_MANAGER_OBSERVER_H_ | 5 #ifndef CHROME_BROWSER_CHROMEOS_SYSTEM_AUTOMATIC_REBOOT_MANAGER_OBSERVER_H_ |
| 6 #define CHROME_BROWSER_CHROMEOS_SYSTEM_AUTOMATIC_REBOOT_MANAGER_OBSERVER_H_ | 6 #define CHROME_BROWSER_CHROMEOS_SYSTEM_AUTOMATIC_REBOOT_MANAGER_OBSERVER_H_ |
| 7 | 7 |
| 8 namespace chromeos { | 8 namespace chromeos { |
| 9 namespace system { | 9 namespace system { |
| 10 | 10 |
| 11 class AutomaticRebootManagerObserver { | 11 class AutomaticRebootManagerObserver { |
| 12 public: | 12 public: |
| 13 enum Reason { | 13 enum Reason { |
| 14 REBOOT_REASON_UNKNOWN, | 14 REBOOT_REASON_UNKNOWN, |
| 15 REBOOT_REASON_OS_UPDATE, | 15 REBOOT_REASON_OS_UPDATE, |
| 16 REBOOT_REASON_PERIODIC, | 16 REBOOT_REASON_PERIODIC, |
| 17 }; | 17 }; |
| 18 | 18 |
| 19 // Invoked when a reboot is scheduled. | 19 // Invoked when a reboot is requested. |
| 20 virtual void OnRebootScheduled(Reason reason) = 0; | 20 virtual void OnRebootRequested(Reason reason) = 0; |
| 21 | 21 |
| 22 // Invoked before the automatic reboot manager is destroyed. | 22 // Invoked before the automatic reboot manager is destroyed. |
| 23 virtual void WillDestroyAutomaticRebootManager() = 0; | 23 virtual void WillDestroyAutomaticRebootManager() = 0; |
| 24 | 24 |
| 25 protected: | 25 protected: |
| 26 virtual ~AutomaticRebootManagerObserver() {} | 26 virtual ~AutomaticRebootManagerObserver() {} |
| 27 }; | 27 }; |
| 28 | 28 |
| 29 } // namespace system | 29 } // namespace system |
| 30 } // namespace chromeos | 30 } // namespace chromeos |
| 31 | 31 |
| 32 #endif // CHROME_BROWSER_CHROMEOS_SYSTEM_AUTOMATIC_REBOOT_MANAGER_OBSERVER_H_ | 32 #endif // CHROME_BROWSER_CHROMEOS_SYSTEM_AUTOMATIC_REBOOT_MANAGER_OBSERVER_H_ |
| OLD | NEW |