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 REMOTING_HOST_IT2ME_HOST_USER_INTERFACE_H_ | 5 #ifndef REMOTING_HOST_IT2ME_HOST_USER_INTERFACE_H_ |
6 #define REMOTING_HOST_IT2ME_HOST_USER_INTERFACE_H_ | 6 #define REMOTING_HOST_IT2ME_HOST_USER_INTERFACE_H_ |
7 | 7 |
8 #include <string> | 8 #include <string> |
9 | 9 |
10 #include "base/basictypes.h" | 10 #include "base/basictypes.h" |
(...skipping 27 matching lines...) Expand all Loading... |
38 It2MeHostUserInterface(ChromotingHost* host, ChromotingHostContext* context); | 38 It2MeHostUserInterface(ChromotingHost* host, ChromotingHostContext* context); |
39 virtual ~It2MeHostUserInterface(); | 39 virtual ~It2MeHostUserInterface(); |
40 | 40 |
41 void Init(); | 41 void Init(); |
42 | 42 |
43 // HostStatusObserver implementation. These methods will be called from the | 43 // HostStatusObserver implementation. These methods will be called from the |
44 // network thread. | 44 // network thread. |
45 virtual void OnClientAuthenticated(const std::string& jid) OVERRIDE; | 45 virtual void OnClientAuthenticated(const std::string& jid) OVERRIDE; |
46 virtual void OnClientDisconnected(const std::string& jid) OVERRIDE; | 46 virtual void OnClientDisconnected(const std::string& jid) OVERRIDE; |
47 virtual void OnAccessDenied(const std::string& jid) OVERRIDE; | 47 virtual void OnAccessDenied(const std::string& jid) OVERRIDE; |
| 48 virtual void OnClientIpAddress(const std::string& jid, |
| 49 const std::string& channel_name, |
| 50 const net::IPEndPoint& end_point) OVERRIDE; |
48 virtual void OnShutdown() OVERRIDE; | 51 virtual void OnShutdown() OVERRIDE; |
49 | 52 |
50 // Shuts down the object and all its resources synchronously. Must | 53 // Shuts down the object and all its resources synchronously. Must |
51 // be called on the UI thread. | 54 // be called on the UI thread. |
52 void Shutdown(); | 55 void Shutdown(); |
53 | 56 |
54 private: | 57 private: |
55 class TimerTask; | 58 class TimerTask; |
56 | 59 |
57 // Allow ChromotingHostTest::SetUp() to call InitFrom(). | 60 // Allow ChromotingHostTest::SetUp() to call InitFrom(). |
(...skipping 54 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
112 // The JID of the currently-authenticated user (or an empty string if no user | 115 // The JID of the currently-authenticated user (or an empty string if no user |
113 // is connected). | 116 // is connected). |
114 std::string authenticated_jid_; | 117 std::string authenticated_jid_; |
115 | 118 |
116 DISALLOW_COPY_AND_ASSIGN(It2MeHostUserInterface); | 119 DISALLOW_COPY_AND_ASSIGN(It2MeHostUserInterface); |
117 }; | 120 }; |
118 | 121 |
119 } // namespace remoting | 122 } // namespace remoting |
120 | 123 |
121 #endif // REMOTING_HOST_IT2ME_HOST_USER_INTERFACE_H_ | 124 #endif // REMOTING_HOST_IT2ME_HOST_USER_INTERFACE_H_ |
OLD | NEW |