| 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 <string> | 8 #include <string> |
| 9 | 9 |
| 10 #include "base/memory/ref_counted.h" | 10 #include "base/memory/ref_counted.h" |
| (...skipping 88 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 99 const base::TimeDelta& max_duration, | 99 const base::TimeDelta& max_duration, |
| 100 scoped_refptr<protocol::PairingRegistry> pairing_registry, | 100 scoped_refptr<protocol::PairingRegistry> pairing_registry, |
| 101 const std::vector<HostExtension*>& extensions); | 101 const std::vector<HostExtension*>& extensions); |
| 102 virtual ~ClientSession(); | 102 virtual ~ClientSession(); |
| 103 | 103 |
| 104 // Returns the set of capabilities negotiated between client and host. | 104 // Returns the set of capabilities negotiated between client and host. |
| 105 const std::string& capabilities() const { return capabilities_; } | 105 const std::string& capabilities() const { return capabilities_; } |
| 106 | 106 |
| 107 // protocol::HostStub interface. | 107 // protocol::HostStub interface. |
| 108 virtual void NotifyClientResolution( | 108 virtual void NotifyClientResolution( |
| 109 const protocol::ClientResolution& resolution) OVERRIDE; | 109 const protocol::ClientResolution& resolution) override; |
| 110 virtual void ControlVideo( | 110 virtual void ControlVideo( |
| 111 const protocol::VideoControl& video_control) OVERRIDE; | 111 const protocol::VideoControl& video_control) override; |
| 112 virtual void ControlAudio( | 112 virtual void ControlAudio( |
| 113 const protocol::AudioControl& audio_control) OVERRIDE; | 113 const protocol::AudioControl& audio_control) override; |
| 114 virtual void SetCapabilities( | 114 virtual void SetCapabilities( |
| 115 const protocol::Capabilities& capabilities) OVERRIDE; | 115 const protocol::Capabilities& capabilities) override; |
| 116 virtual void RequestPairing( | 116 virtual void RequestPairing( |
| 117 const remoting::protocol::PairingRequest& pairing_request) OVERRIDE; | 117 const remoting::protocol::PairingRequest& pairing_request) override; |
| 118 virtual void DeliverClientMessage( | 118 virtual void DeliverClientMessage( |
| 119 const protocol::ExtensionMessage& message) OVERRIDE; | 119 const protocol::ExtensionMessage& message) override; |
| 120 | 120 |
| 121 // protocol::ConnectionToClient::EventHandler interface. | 121 // protocol::ConnectionToClient::EventHandler interface. |
| 122 virtual void OnConnectionAuthenticating( | 122 virtual void OnConnectionAuthenticating( |
| 123 protocol::ConnectionToClient* connection) OVERRIDE; | 123 protocol::ConnectionToClient* connection) override; |
| 124 virtual void OnConnectionAuthenticated( | 124 virtual void OnConnectionAuthenticated( |
| 125 protocol::ConnectionToClient* connection) OVERRIDE; | 125 protocol::ConnectionToClient* connection) override; |
| 126 virtual void OnConnectionChannelsConnected( | 126 virtual void OnConnectionChannelsConnected( |
| 127 protocol::ConnectionToClient* connection) OVERRIDE; | 127 protocol::ConnectionToClient* connection) override; |
| 128 virtual void OnConnectionClosed(protocol::ConnectionToClient* connection, | 128 virtual void OnConnectionClosed(protocol::ConnectionToClient* connection, |
| 129 protocol::ErrorCode error) OVERRIDE; | 129 protocol::ErrorCode error) override; |
| 130 virtual void OnSequenceNumberUpdated( | 130 virtual void OnSequenceNumberUpdated( |
| 131 protocol::ConnectionToClient* connection, int64 sequence_number) OVERRIDE; | 131 protocol::ConnectionToClient* connection, int64 sequence_number) override; |
| 132 virtual void OnRouteChange( | 132 virtual void OnRouteChange( |
| 133 protocol::ConnectionToClient* connection, | 133 protocol::ConnectionToClient* connection, |
| 134 const std::string& channel_name, | 134 const std::string& channel_name, |
| 135 const protocol::TransportRoute& route) OVERRIDE; | 135 const protocol::TransportRoute& route) override; |
| 136 | 136 |
| 137 // ClientSessionControl interface. | 137 // ClientSessionControl interface. |
| 138 virtual const std::string& client_jid() const OVERRIDE; | 138 virtual const std::string& client_jid() const override; |
| 139 virtual void DisconnectSession() OVERRIDE; | 139 virtual void DisconnectSession() override; |
| 140 virtual void OnLocalMouseMoved( | 140 virtual void OnLocalMouseMoved( |
| 141 const webrtc::DesktopVector& position) OVERRIDE; | 141 const webrtc::DesktopVector& position) override; |
| 142 virtual void SetDisableInputs(bool disable_inputs) OVERRIDE; | 142 virtual void SetDisableInputs(bool disable_inputs) override; |
| 143 virtual void ResetVideoPipeline() OVERRIDE; | 143 virtual void ResetVideoPipeline() override; |
| 144 | 144 |
| 145 void SetGnubbyAuthHandlerForTesting(GnubbyAuthHandler* gnubby_auth_handler); | 145 void SetGnubbyAuthHandlerForTesting(GnubbyAuthHandler* gnubby_auth_handler); |
| 146 | 146 |
| 147 protocol::ConnectionToClient* connection() const { | 147 protocol::ConnectionToClient* connection() const { |
| 148 return connection_.get(); | 148 return connection_.get(); |
| 149 } | 149 } |
| 150 | 150 |
| 151 bool is_authenticated() { return auth_input_filter_.enabled(); } | 151 bool is_authenticated() { return auth_input_filter_.enabled(); } |
| 152 | 152 |
| 153 const std::string* client_capabilities() const { | 153 const std::string* client_capabilities() const { |
| (...skipping 108 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 262 // Used to disable callbacks to |this| once DisconnectSession() has been | 262 // Used to disable callbacks to |this| once DisconnectSession() has been |
| 263 // called. | 263 // called. |
| 264 base::WeakPtrFactory<ClientSessionControl> weak_factory_; | 264 base::WeakPtrFactory<ClientSessionControl> weak_factory_; |
| 265 | 265 |
| 266 DISALLOW_COPY_AND_ASSIGN(ClientSession); | 266 DISALLOW_COPY_AND_ASSIGN(ClientSession); |
| 267 }; | 267 }; |
| 268 | 268 |
| 269 } // namespace remoting | 269 } // namespace remoting |
| 270 | 270 |
| 271 #endif // REMOTING_HOST_CLIENT_SESSION_H_ | 271 #endif // REMOTING_HOST_CLIENT_SESSION_H_ |
| OLD | NEW |