Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(361)

Side by Side Diff: chrome/browser/chromeos/system/automatic_reboot_manager_observer.h

Issue 727363002: Fire notifications when reboot is requested, not scheduled (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@managed_cros
Patch Set: Add missing run_loop.Run(); Created 6 years, 1 month ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
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_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698