OLD | NEW |
1 // Copyright (c) 2011 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_LOGIN_SESSION_MANAGER_OBSERVER_H_ | 5 #ifndef CHROME_BROWSER_CHROMEOS_LOGIN_SESSION_MANAGER_OBSERVER_H_ |
6 #define CHROME_BROWSER_CHROMEOS_LOGIN_SESSION_MANAGER_OBSERVER_H_ | 6 #define CHROME_BROWSER_CHROMEOS_LOGIN_SESSION_MANAGER_OBSERVER_H_ |
7 #pragma once | 7 #pragma once |
8 | 8 |
9 #include "base/basictypes.h" | 9 #include "base/basictypes.h" |
10 #include "base/compiler_specific.h" | 10 #include "base/compiler_specific.h" |
11 #include "chrome/browser/chromeos/dbus/session_manager_client.h" | 11 #include "chromeos/dbus/session_manager_client.h" |
12 | 12 |
13 namespace chromeos { | 13 namespace chromeos { |
14 | 14 |
15 // SessionManagerObserver is used to take actions per signals sent from the | 15 // SessionManagerObserver is used to take actions per signals sent from the |
16 // session manager. | 16 // session manager. |
17 class SessionManagerObserver : public SessionManagerClient::Observer { | 17 class SessionManagerObserver : public SessionManagerClient::Observer { |
18 public: | 18 public: |
19 SessionManagerObserver(); | 19 SessionManagerObserver(); |
20 virtual ~SessionManagerObserver(); | 20 virtual ~SessionManagerObserver(); |
21 | 21 |
22 private: | 22 private: |
23 // SessionManagerClient::Observer override. | 23 // SessionManagerClient::Observer override. |
24 virtual void OwnerKeySet(bool success) OVERRIDE; | 24 virtual void OwnerKeySet(bool success) OVERRIDE; |
25 // SessionManagerClient::Observer override. | 25 // SessionManagerClient::Observer override. |
26 virtual void PropertyChangeComplete(bool success) OVERRIDE; | 26 virtual void PropertyChangeComplete(bool success) OVERRIDE; |
27 | 27 |
28 DISALLOW_COPY_AND_ASSIGN(SessionManagerObserver); | 28 DISALLOW_COPY_AND_ASSIGN(SessionManagerObserver); |
29 }; | 29 }; |
30 | 30 |
31 } // namespace chromeos | 31 } // namespace chromeos |
32 | 32 |
33 #endif // CHROME_BROWSER_CHROMEOS_LOGIN_SESSION_MANAGER_OBSERVER_H_ | 33 #endif // CHROME_BROWSER_CHROMEOS_LOGIN_SESSION_MANAGER_OBSERVER_H_ |
OLD | NEW |