Chromium Code Reviews| OLD | NEW |
|---|---|
| (Empty) | |
| 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 | |
| 3 // found in the LICENSE file. | |
| 4 | |
| 5 #ifndef CHROME_BROWSER_CHROMEOS_SYSTEM_AUTOMATIC_REBOOT_MANAGER_OBSERVER_H_ | |
| 6 #define CHROME_BROWSER_CHROMEOS_SYSTEM_AUTOMATIC_REBOOT_MANAGER_OBSERVER_H_ | |
| 7 | |
| 8 namespace chromeos { | |
| 9 namespace system { | |
| 10 | |
| 11 class AutomaticRebootManagerObserver { | |
| 12 public: | |
| 13 enum Reason { | |
| 14 REBOOT_REASON_UNKNOWN, | |
| 15 REBOOT_REASON_OS_UPDATE, | |
| 16 REBOOT_REASON_PERIODIC, | |
| 17 }; | |
| 18 | |
| 19 // Invoked when a reboot is scheduled. | |
| 20 virtual void OnRebootScheduled(Reason reason) = 0; | |
| 21 | |
| 22 // Invoked before the automatic reboot manager shuts down. | |
| 23 virtual void willShutdownAutomaticRebootManager() = 0; | |
|
bartfab (slow)
2013/06/21 06:27:58
Capitalization nit: s/will/Will/
xiyuan
2013/06/21 16:50:56
Done.
| |
| 24 | |
| 25 protected: | |
| 26 virtual ~AutomaticRebootManagerObserver() {} | |
| 27 }; | |
| 28 | |
| 29 } // namespace system | |
| 30 } // namespace chromeos | |
| 31 | |
| 32 #endif // CHROME_BROWSER_CHROMEOS_SYSTEM_AUTOMATIC_REBOOT_MANAGER_OBSERVER_H_ | |
| OLD | NEW |