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_DBUS_SESSION_MANAGER_CLIENT_H_ | 5 #ifndef CHROMEOS_DBUS_SESSION_MANAGER_CLIENT_H_ |
6 #define CHROME_BROWSER_CHROMEOS_DBUS_SESSION_MANAGER_CLIENT_H_ | 6 #define CHROMEOS_DBUS_SESSION_MANAGER_CLIENT_H_ |
7 | 7 |
8 #include "base/callback.h" | 8 #include "base/callback.h" |
9 #include "base/observer_list.h" | 9 #include "base/observer_list.h" |
10 #include "chrome/browser/chromeos/dbus/dbus_client_implementation_type.h" | 10 #include "chromeos/chromeos_export.h" |
| 11 #include "chromeos/dbus/dbus_client_implementation_type.h" |
11 | 12 |
12 #include <string> | 13 #include <string> |
13 | 14 |
14 namespace dbus { | 15 namespace dbus { |
15 class Bus; | 16 class Bus; |
16 } // namespace | 17 } // namespace |
17 | 18 |
18 namespace chromeos { | 19 namespace chromeos { |
19 | 20 |
20 // SessionManagerClient is used to communicate with the session manager. | 21 // SessionManagerClient is used to communicate with the session manager. |
21 class SessionManagerClient { | 22 class CHROMEOS_EXPORT SessionManagerClient { |
22 public: | 23 public: |
23 // Interface for observing changes from the session manager. | 24 // Interface for observing changes from the session manager. |
24 class Observer { | 25 class Observer { |
25 public: | 26 public: |
26 // Called when the owner key is set. | 27 // Called when the owner key is set. |
27 virtual void OwnerKeySet(bool success) {} | 28 virtual void OwnerKeySet(bool success) {} |
28 // Called when the property change is complete. | 29 // Called when the property change is complete. |
29 virtual void PropertyChangeComplete(bool success) {} | 30 virtual void PropertyChangeComplete(bool success) {} |
30 }; | 31 }; |
31 | 32 |
(...skipping 58 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
90 protected: | 91 protected: |
91 // Create() should be used instead. | 92 // Create() should be used instead. |
92 SessionManagerClient(); | 93 SessionManagerClient(); |
93 | 94 |
94 private: | 95 private: |
95 DISALLOW_COPY_AND_ASSIGN(SessionManagerClient); | 96 DISALLOW_COPY_AND_ASSIGN(SessionManagerClient); |
96 }; | 97 }; |
97 | 98 |
98 } // namespace chromeos | 99 } // namespace chromeos |
99 | 100 |
100 #endif // CHROME_BROWSER_CHROMEOS_DBUS_SESSION_MANAGER_CLIENT_H_ | 101 #endif // CHROMEOS_DBUS_SESSION_MANAGER_CLIENT_H_ |
OLD | NEW |