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 <list> | 8 #include <list> |
9 #include <string> | 9 #include <string> |
10 | 10 |
(...skipping 93 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
104 // factory before all authenticators it created are deleted. | 104 // factory before all authenticators it created are deleted. |
105 void SetAuthenticatorFactory( | 105 void SetAuthenticatorFactory( |
106 scoped_ptr<protocol::AuthenticatorFactory> authenticator_factory); | 106 scoped_ptr<protocol::AuthenticatorFactory> authenticator_factory); |
107 | 107 |
108 // Sets the maximum duration of any session. By default, a session has no | 108 // Sets the maximum duration of any session. By default, a session has no |
109 // maximum duration. | 109 // maximum duration. |
110 void SetMaximumSessionDuration(const base::TimeDelta& max_session_duration); | 110 void SetMaximumSessionDuration(const base::TimeDelta& max_session_duration); |
111 | 111 |
112 //////////////////////////////////////////////////////////////////////////// | 112 //////////////////////////////////////////////////////////////////////////// |
113 // ClientSession::EventHandler implementation. | 113 // ClientSession::EventHandler implementation. |
114 virtual void OnSessionAuthenticated(ClientSession* client) OVERRIDE; | 114 virtual bool OnSessionAuthenticated(ClientSession* client) OVERRIDE; |
115 virtual void OnSessionChannelsConnected(ClientSession* client) OVERRIDE; | 115 virtual void OnSessionChannelsConnected(ClientSession* client) OVERRIDE; |
116 virtual void OnSessionAuthenticationFailed(ClientSession* client) OVERRIDE; | 116 virtual void OnSessionAuthenticationFailed(ClientSession* client) OVERRIDE; |
117 virtual void OnSessionClosed(ClientSession* session) OVERRIDE; | 117 virtual void OnSessionClosed(ClientSession* session) OVERRIDE; |
118 virtual void OnSessionSequenceNumber(ClientSession* session, | 118 virtual void OnSessionSequenceNumber(ClientSession* session, |
119 int64 sequence_number) OVERRIDE; | 119 int64 sequence_number) OVERRIDE; |
120 virtual void OnSessionRouteChange( | 120 virtual void OnSessionRouteChange( |
121 ClientSession* session, | 121 ClientSession* session, |
122 const std::string& channel_name, | 122 const std::string& channel_name, |
123 const protocol::TransportRoute& route) OVERRIDE; | 123 const protocol::TransportRoute& route) OVERRIDE; |
124 | 124 |
(...skipping 59 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
184 base::TimeDelta max_session_duration_; | 184 base::TimeDelta max_session_duration_; |
185 | 185 |
186 base::WeakPtrFactory<ChromotingHost> weak_factory_; | 186 base::WeakPtrFactory<ChromotingHost> weak_factory_; |
187 | 187 |
188 DISALLOW_COPY_AND_ASSIGN(ChromotingHost); | 188 DISALLOW_COPY_AND_ASSIGN(ChromotingHost); |
189 }; | 189 }; |
190 | 190 |
191 } // namespace remoting | 191 } // namespace remoting |
192 | 192 |
193 #endif // REMOTING_HOST_CHROMOTING_HOST_H_ | 193 #endif // REMOTING_HOST_CHROMOTING_HOST_H_ |
OLD | NEW |