Adding instrumentation to locate the source of jankiness
[chromium-blink-merge.git] / chrome / browser / chromeos / system / automatic_reboot_manager_observer.h
blob67c1b50c7ba6db64af1c5c5f7228d36b89434e92
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.
5 #ifndef CHROME_BROWSER_CHROMEOS_SYSTEM_AUTOMATIC_REBOOT_MANAGER_OBSERVER_H_
6 #define CHROME_BROWSER_CHROMEOS_SYSTEM_AUTOMATIC_REBOOT_MANAGER_OBSERVER_H_
8 namespace chromeos {
9 namespace system {
11 class AutomaticRebootManagerObserver {
12 public:
13 enum Reason {
14 REBOOT_REASON_UNKNOWN,
15 REBOOT_REASON_OS_UPDATE,
16 REBOOT_REASON_PERIODIC,
19 // Invoked when a reboot is scheduled.
20 virtual void OnRebootScheduled(Reason reason) = 0;
22 // Invoked before the automatic reboot manager is destroyed.
23 virtual void WillDestroyAutomaticRebootManager() = 0;
25 protected:
26 virtual ~AutomaticRebootManagerObserver() {}
29 } // namespace system
30 } // namespace chromeos
32 #endif // CHROME_BROWSER_CHROMEOS_SYSTEM_AUTOMATIC_REBOOT_MANAGER_OBSERVER_H_