OLD | NEW |
1 // Copyright (c) 2013 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 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_POWER_SUSPEND_OBSERVER_H_ | 5 #ifndef CHROME_BROWSER_CHROMEOS_POWER_SUSPEND_OBSERVER_H_ |
6 #define CHROME_BROWSER_CHROMEOS_POWER_SUSPEND_OBSERVER_H_ | 6 #define CHROME_BROWSER_CHROMEOS_POWER_SUSPEND_OBSERVER_H_ |
7 | 7 |
8 #include "ash/shell.h" | |
9 #include "base/basictypes.h" | 8 #include "base/basictypes.h" |
10 #include "base/callback.h" | 9 #include "base/callback.h" |
11 #include "base/compiler_specific.h" | 10 #include "base/compiler_specific.h" |
12 #include "chromeos/dbus/power_manager_client.h" | 11 #include "chromeos/dbus/power_manager_client.h" |
13 #include "chromeos/dbus/session_manager_client.h" | 12 #include "chromeos/dbus/session_manager_client.h" |
14 | 13 |
15 namespace chromeos { | 14 namespace chromeos { |
16 | 15 |
17 // A class to observe suspend events. | 16 // A class to observe suspend events. |
18 class SuspendObserver : public PowerManagerClient::Observer, | 17 class SuspendObserver : public PowerManagerClient::Observer, |
(...skipping 20 matching lines...) Expand all Loading... |
39 // If set, called when the lock screen has been shown to confirm that the | 38 // If set, called when the lock screen has been shown to confirm that the |
40 // system is ready to be suspended. | 39 // system is ready to be suspended. |
41 base::Closure screen_lock_callback_; | 40 base::Closure screen_lock_callback_; |
42 | 41 |
43 DISALLOW_COPY_AND_ASSIGN(SuspendObserver); | 42 DISALLOW_COPY_AND_ASSIGN(SuspendObserver); |
44 }; | 43 }; |
45 | 44 |
46 } // namespace chromeos | 45 } // namespace chromeos |
47 | 46 |
48 #endif // CHROME_BROWSER_CHROMEOS_POWER_SUSPEND_OBSERVER_H_ | 47 #endif // CHROME_BROWSER_CHROMEOS_POWER_SUSPEND_OBSERVER_H_ |
OLD | NEW |