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

Side by Side Diff: chrome/browser/chromeos/power/session_state_controller_delegate_chromeos.h

Issue 811033002: Add device policy to disallow shutdown - ash UI modifications (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Rebase Created 5 years, 11 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
OLDNEW
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/basictypes.h" 9 #include "base/basictypes.h"
10 #include "base/compiler_specific.h" 10 #include "base/compiler_specific.h"
11 #include "base/memory/weak_ptr.h"
11 12
12 namespace chromeos { 13 namespace chromeos {
13 14
14 class SessionStateControllerDelegateChromeos 15 class SessionStateControllerDelegateChromeos
15 : public ash::LockStateControllerDelegate { 16 : public ash::LockStateControllerDelegate {
16 public: 17 public:
17 SessionStateControllerDelegateChromeos() {} 18 SessionStateControllerDelegateChromeos();
18 ~SessionStateControllerDelegateChromeos() override {} 19 ~SessionStateControllerDelegateChromeos() override;
19 20
20 private: 21 private:
21 // SessionStateControllerDelegate implementation. 22 // SessionStateControllerDelegate implementation.
22 void RequestLockScreen() override; 23 void RequestLockScreen() override;
23 void RequestRestart() override;
24 void RequestShutdown() override; 24 void RequestShutdown() override;
25 25
26 base::WeakPtrFactory<SessionStateControllerDelegateChromeos> weak_factory_;
27
26 DISALLOW_COPY_AND_ASSIGN(SessionStateControllerDelegateChromeos); 28 DISALLOW_COPY_AND_ASSIGN(SessionStateControllerDelegateChromeos);
27 }; 29 };
28 30
29 } // namespace chromeos 31 } // namespace chromeos
30 32
31 #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_
OLDNEW
« no previous file with comments | « ash/wm/power_button_controller.cc ('k') | chrome/browser/chromeos/power/session_state_controller_delegate_chromeos.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698