| 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_CLIENT_SESSION_H_ | 5 #ifndef REMOTING_HOST_CLIENT_SESSION_H_ |
| 6 #define REMOTING_HOST_CLIENT_SESSION_H_ | 6 #define REMOTING_HOST_CLIENT_SESSION_H_ |
| 7 | 7 |
| 8 #include <list> | 8 #include <list> |
| 9 | 9 |
| 10 #include "base/memory/ref_counted.h" | 10 #include "base/memory/ref_counted.h" |
| (...skipping 80 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 91 scoped_refptr<base::SingleThreadTaskRunner> network_task_runner, | 91 scoped_refptr<base::SingleThreadTaskRunner> network_task_runner, |
| 92 scoped_ptr<protocol::ConnectionToClient> connection, | 92 scoped_ptr<protocol::ConnectionToClient> connection, |
| 93 scoped_ptr<DesktopEnvironment> desktop_environment, | 93 scoped_ptr<DesktopEnvironment> desktop_environment, |
| 94 const base::TimeDelta& max_duration); | 94 const base::TimeDelta& max_duration); |
| 95 | 95 |
| 96 // protocol::HostStub interface. | 96 // protocol::HostStub interface. |
| 97 virtual void NotifyClientDimensions( | 97 virtual void NotifyClientDimensions( |
| 98 const protocol::ClientDimensions& dimensions) OVERRIDE; | 98 const protocol::ClientDimensions& dimensions) OVERRIDE; |
| 99 virtual void ControlVideo( | 99 virtual void ControlVideo( |
| 100 const protocol::VideoControl& video_control) OVERRIDE; | 100 const protocol::VideoControl& video_control) OVERRIDE; |
| 101 virtual void ControlAudio( |
| 102 const protocol::AudioControl& audio_control) OVERRIDE; |
| 101 | 103 |
| 102 // protocol::ConnectionToClient::EventHandler interface. | 104 // protocol::ConnectionToClient::EventHandler interface. |
| 103 virtual void OnConnectionAuthenticated( | 105 virtual void OnConnectionAuthenticated( |
| 104 protocol::ConnectionToClient* connection) OVERRIDE; | 106 protocol::ConnectionToClient* connection) OVERRIDE; |
| 105 virtual void OnConnectionChannelsConnected( | 107 virtual void OnConnectionChannelsConnected( |
| 106 protocol::ConnectionToClient* connection) OVERRIDE; | 108 protocol::ConnectionToClient* connection) OVERRIDE; |
| 107 virtual void OnConnectionClosed(protocol::ConnectionToClient* connection, | 109 virtual void OnConnectionClosed(protocol::ConnectionToClient* connection, |
| 108 protocol::ErrorCode error) OVERRIDE; | 110 protocol::ErrorCode error) OVERRIDE; |
| 109 virtual void OnSequenceNumberUpdated( | 111 virtual void OnSequenceNumberUpdated( |
| 110 protocol::ConnectionToClient* connection, int64 sequence_number) OVERRIDE; | 112 protocol::ConnectionToClient* connection, int64 sequence_number) OVERRIDE; |
| (...skipping 120 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 231 }; | 233 }; |
| 232 | 234 |
| 233 // Destroys |ClienSession| instances on the network thread. | 235 // Destroys |ClienSession| instances on the network thread. |
| 234 struct ClientSessionTraits { | 236 struct ClientSessionTraits { |
| 235 static void Destruct(const ClientSession* client); | 237 static void Destruct(const ClientSession* client); |
| 236 }; | 238 }; |
| 237 | 239 |
| 238 } // namespace remoting | 240 } // namespace remoting |
| 239 | 241 |
| 240 #endif // REMOTING_HOST_CLIENT_SESSION_H_ | 242 #endif // REMOTING_HOST_CLIENT_SESSION_H_ |
| OLD | NEW |