| OLD | NEW |
| 1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2012 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_SESSION_STATE_CONTROLLER_DELEGATE_CHROMEOS
_H_ | 5 #ifndef CHROME_BROWSER_CHROMEOS_POWER_SESSION_STATE_CONTROLLER_DELEGATE_CHROMEOS
_H_ |
| 6 #define CHROME_BROWSER_CHROMEOS_POWER_SESSION_STATE_CONTROLLER_DELEGATE_CHROMEOS
_H_ | 6 #define CHROME_BROWSER_CHROMEOS_POWER_SESSION_STATE_CONTROLLER_DELEGATE_CHROMEOS
_H_ |
| 7 | 7 |
| 8 #include "ash/wm/lock_state_controller.h" | 8 #include "ash/wm/lock_state_controller.h" |
| 9 #include "base/compiler_specific.h" | 9 #include "base/compiler_specific.h" |
| 10 #include "base/macros.h" | 10 #include "base/macros.h" |
| 11 #include "base/memory/weak_ptr.h" | 11 #include "base/memory/weak_ptr.h" |
| 12 | 12 |
| 13 namespace chromeos { | 13 namespace chromeos { |
| 14 | 14 |
| 15 class SessionStateControllerDelegateChromeos | 15 class SessionStateControllerDelegateChromeos |
| 16 : public ash::LockStateControllerDelegate { | 16 : public ash::LockStateControllerDelegate { |
| 17 public: | 17 public: |
| 18 SessionStateControllerDelegateChromeos(); | 18 SessionStateControllerDelegateChromeos(); |
| 19 ~SessionStateControllerDelegateChromeos() override; | 19 ~SessionStateControllerDelegateChromeos() override; |
| 20 | 20 |
| 21 private: | 21 private: |
| 22 // ash::LockStateControllerDelegate implementation. | 22 // ash::LockStateControllerDelegate implementation. |
| 23 bool IsLoading() const override; | |
| 24 void RequestLockScreen() override; | 23 void RequestLockScreen() override; |
| 25 void RequestShutdown() override; | 24 void RequestShutdown() override; |
| 26 | 25 |
| 27 base::WeakPtrFactory<SessionStateControllerDelegateChromeos> weak_factory_; | 26 base::WeakPtrFactory<SessionStateControllerDelegateChromeos> weak_factory_; |
| 28 | 27 |
| 29 DISALLOW_COPY_AND_ASSIGN(SessionStateControllerDelegateChromeos); | 28 DISALLOW_COPY_AND_ASSIGN(SessionStateControllerDelegateChromeos); |
| 30 }; | 29 }; |
| 31 | 30 |
| 32 } // namespace chromeos | 31 } // namespace chromeos |
| 33 | 32 |
| 34 #endif // CHROME_BROWSER_CHROMEOS_POWER_SESSION_STATE_CONTROLLER_DELEGATE_CHROM
EOS_H_ | 33 #endif // CHROME_BROWSER_CHROMEOS_POWER_SESSION_STATE_CONTROLLER_DELEGATE_CHROM
EOS_H_ |
| OLD | NEW |