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

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

Issue 16844020: app_mode: Add runtime.onRestartRequired event. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: rebase Created 7 years, 6 months 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 | Annotate | Revision Log
OLDNEW
(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 is destroyed.
23 virtual void WillDestroyAutomaticRebootManager() = 0;
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_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698