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 97 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
108 // Enables/disables curtaining when one or more clients are connected. | 108 // Enables/disables curtaining when one or more clients are connected. |
109 // Takes immediate effect if clients are already connected. | 109 // Takes immediate effect if clients are already connected. |
110 void SetEnableCurtaining(bool enable); | 110 void SetEnableCurtaining(bool enable); |
111 | 111 |
112 // Sets the maximum duration of any session. By default, a session has no | 112 // Sets the maximum duration of any session. By default, a session has no |
113 // maximum duration. | 113 // maximum duration. |
114 void SetMaximumSessionDuration(const base::TimeDelta& max_session_duration); | 114 void SetMaximumSessionDuration(const base::TimeDelta& max_session_duration); |
115 | 115 |
116 //////////////////////////////////////////////////////////////////////////// | 116 //////////////////////////////////////////////////////////////////////////// |
117 // ClientSession::EventHandler implementation. | 117 // ClientSession::EventHandler implementation. |
| 118 virtual void OnSessionAuthenticating(ClientSession* client) OVERRIDE; |
118 virtual bool OnSessionAuthenticated(ClientSession* client) OVERRIDE; | 119 virtual bool OnSessionAuthenticated(ClientSession* client) OVERRIDE; |
119 virtual void OnSessionChannelsConnected(ClientSession* client) OVERRIDE; | 120 virtual void OnSessionChannelsConnected(ClientSession* client) OVERRIDE; |
120 virtual void OnSessionAuthenticationFailed(ClientSession* client) OVERRIDE; | 121 virtual void OnSessionAuthenticationFailed(ClientSession* client) OVERRIDE; |
121 virtual void OnSessionClosed(ClientSession* session) OVERRIDE; | 122 virtual void OnSessionClosed(ClientSession* session) OVERRIDE; |
122 virtual void OnSessionSequenceNumber(ClientSession* session, | 123 virtual void OnSessionSequenceNumber(ClientSession* session, |
123 int64 sequence_number) OVERRIDE; | 124 int64 sequence_number) OVERRIDE; |
124 virtual void OnSessionRouteChange( | 125 virtual void OnSessionRouteChange( |
125 ClientSession* session, | 126 ClientSession* session, |
126 const std::string& channel_name, | 127 const std::string& channel_name, |
127 const protocol::TransportRoute& route) OVERRIDE; | 128 const protocol::TransportRoute& route) OVERRIDE; |
(...skipping 76 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
204 scoped_refptr<protocol::PairingRegistry> pairing_registry_; | 205 scoped_refptr<protocol::PairingRegistry> pairing_registry_; |
205 | 206 |
206 base::WeakPtrFactory<ChromotingHost> weak_factory_; | 207 base::WeakPtrFactory<ChromotingHost> weak_factory_; |
207 | 208 |
208 DISALLOW_COPY_AND_ASSIGN(ChromotingHost); | 209 DISALLOW_COPY_AND_ASSIGN(ChromotingHost); |
209 }; | 210 }; |
210 | 211 |
211 } // namespace remoting | 212 } // namespace remoting |
212 | 213 |
213 #endif // REMOTING_HOST_CHROMOTING_HOST_H_ | 214 #endif // REMOTING_HOST_CHROMOTING_HOST_H_ |
OLD | NEW |