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_CHROMOTING_HOST_H_ | 5 #ifndef REMOTING_HOST_CHROMOTING_HOST_H_ |
6 #define REMOTING_HOST_CHROMOTING_HOST_H_ | 6 #define REMOTING_HOST_CHROMOTING_HOST_H_ |
7 | 7 |
8 #include <string> | 8 #include <string> |
9 #include <vector> | 9 #include <vector> |
10 | 10 |
(...skipping 92 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
103 void SetAuthenticatorFactory( | 103 void SetAuthenticatorFactory( |
104 scoped_ptr<protocol::AuthenticatorFactory> authenticator_factory); | 104 scoped_ptr<protocol::AuthenticatorFactory> authenticator_factory); |
105 | 105 |
106 //////////////////////////////////////////////////////////////////////////// | 106 //////////////////////////////////////////////////////////////////////////// |
107 // ClientSession::EventHandler implementation. | 107 // ClientSession::EventHandler implementation. |
108 virtual void OnSessionAuthenticated(ClientSession* client) OVERRIDE; | 108 virtual void OnSessionAuthenticated(ClientSession* client) OVERRIDE; |
109 virtual void OnSessionAuthenticationFailed(ClientSession* client) OVERRIDE; | 109 virtual void OnSessionAuthenticationFailed(ClientSession* client) OVERRIDE; |
110 virtual void OnSessionClosed(ClientSession* session) OVERRIDE; | 110 virtual void OnSessionClosed(ClientSession* session) OVERRIDE; |
111 virtual void OnSessionSequenceNumber(ClientSession* session, | 111 virtual void OnSessionSequenceNumber(ClientSession* session, |
112 int64 sequence_number) OVERRIDE; | 112 int64 sequence_number) OVERRIDE; |
| 113 virtual void OnSessionIpAddress(ClientSession* session, |
| 114 const std::string& channel_name, |
| 115 const net::IPEndPoint& end_point) OVERRIDE; |
113 | 116 |
114 // SessionManager::Listener implementation. | 117 // SessionManager::Listener implementation. |
115 virtual void OnSessionManagerReady() OVERRIDE; | 118 virtual void OnSessionManagerReady() OVERRIDE; |
116 virtual void OnIncomingSession( | 119 virtual void OnIncomingSession( |
117 protocol::Session* session, | 120 protocol::Session* session, |
118 protocol::SessionManager::IncomingSessionResponse* response) OVERRIDE; | 121 protocol::SessionManager::IncomingSessionResponse* response) OVERRIDE; |
119 | 122 |
120 // Sets desired configuration for the protocol. Ownership of the | 123 // Sets desired configuration for the protocol. Ownership of the |
121 // |config| is transferred to the object. Must be called before Start(). | 124 // |config| is transferred to the object. Must be called before Start(). |
122 void set_protocol_config(protocol::CandidateSessionConfig* config); | 125 void set_protocol_config(protocol::CandidateSessionConfig* config); |
(...skipping 95 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
218 // TODO(sergeyu): The following members do not belong to | 221 // TODO(sergeyu): The following members do not belong to |
219 // ChromotingHost and should be moved elsewhere. | 222 // ChromotingHost and should be moved elsewhere. |
220 UiStrings ui_strings_; | 223 UiStrings ui_strings_; |
221 | 224 |
222 DISALLOW_COPY_AND_ASSIGN(ChromotingHost); | 225 DISALLOW_COPY_AND_ASSIGN(ChromotingHost); |
223 }; | 226 }; |
224 | 227 |
225 } // namespace remoting | 228 } // namespace remoting |
226 | 229 |
227 #endif // REMOTING_HOST_CHROMOTING_HOST_H_ | 230 #endif // REMOTING_HOST_CHROMOTING_HOST_H_ |
OLD | NEW |