| OLD | NEW |
| 1 // Copyright 2015 The Chromium Authors. All rights reserved. | 1 // Copyright 2015 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_PROTOCOL_ICE_CONNECTION_TO_CLIENT_H_ | 5 #ifndef REMOTING_PROTOCOL_ICE_CONNECTION_TO_CLIENT_H_ |
| 6 #define REMOTING_PROTOCOL_ICE_CONNECTION_TO_CLIENT_H_ | 6 #define REMOTING_PROTOCOL_ICE_CONNECTION_TO_CLIENT_H_ |
| 7 | 7 |
| 8 #include <stdint.h> | 8 #include <stdint.h> |
| 9 | 9 |
| 10 #include <string> | 10 #include <string> |
| (...skipping 47 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 58 // Session::EventHandler interface. | 58 // Session::EventHandler interface. |
| 59 void OnSessionStateChange(Session::State state) override; | 59 void OnSessionStateChange(Session::State state) override; |
| 60 | 60 |
| 61 // IceTransport::EventHandler interface. | 61 // IceTransport::EventHandler interface. |
| 62 void OnIceTransportRouteChange(const std::string& channel_name, | 62 void OnIceTransportRouteChange(const std::string& channel_name, |
| 63 const TransportRoute& route) override; | 63 const TransportRoute& route) override; |
| 64 void OnIceTransportError(ErrorCode error) override; | 64 void OnIceTransportError(ErrorCode error) override; |
| 65 | 65 |
| 66 // ChannelDispatcherBase::EventHandler interface. | 66 // ChannelDispatcherBase::EventHandler interface. |
| 67 void OnChannelInitialized(ChannelDispatcherBase* channel_dispatcher) override; | 67 void OnChannelInitialized(ChannelDispatcherBase* channel_dispatcher) override; |
| 68 void OnChannelError(ChannelDispatcherBase* channel_dispatcher, | |
| 69 ErrorCode error) override; | |
| 70 | 68 |
| 71 private: | 69 private: |
| 72 void NotifyIfChannelsReady(); | 70 void NotifyIfChannelsReady(); |
| 73 | 71 |
| 74 void CloseChannels(); | 72 void CloseChannels(); |
| 75 | 73 |
| 76 base::ThreadChecker thread_checker_; | 74 base::ThreadChecker thread_checker_; |
| 77 | 75 |
| 78 // Event handler for handling events sent from this object. | 76 // Event handler for handling events sent from this object. |
| 79 ConnectionToClient::EventHandler* event_handler_; | 77 ConnectionToClient::EventHandler* event_handler_; |
| 80 | 78 |
| 81 scoped_ptr<Session> session_; | 79 scoped_ptr<Session> session_; |
| 82 | 80 |
| 83 scoped_refptr<base::SingleThreadTaskRunner> video_encode_task_runner_; | 81 scoped_refptr<base::SingleThreadTaskRunner> video_encode_task_runner_; |
| 84 | 82 |
| 85 IceTransport transport_; | 83 IceTransport transport_; |
| 86 | 84 |
| 87 scoped_ptr<HostControlDispatcher> control_dispatcher_; | 85 scoped_ptr<HostControlDispatcher> control_dispatcher_; |
| 88 scoped_ptr<HostEventDispatcher> event_dispatcher_; | 86 scoped_ptr<HostEventDispatcher> event_dispatcher_; |
| 89 scoped_ptr<HostVideoDispatcher> video_dispatcher_; | 87 scoped_ptr<HostVideoDispatcher> video_dispatcher_; |
| 90 scoped_ptr<AudioWriter> audio_writer_; | 88 scoped_ptr<AudioWriter> audio_writer_; |
| 91 | 89 |
| 92 DISALLOW_COPY_AND_ASSIGN(IceConnectionToClient); | 90 DISALLOW_COPY_AND_ASSIGN(IceConnectionToClient); |
| 93 }; | 91 }; |
| 94 | 92 |
| 95 } // namespace protocol | 93 } // namespace protocol |
| 96 } // namespace remoting | 94 } // namespace remoting |
| 97 | 95 |
| 98 #endif // REMOTING_PROTOCOL_ICE_CONNECTION_TO_CLIENT_H_ | 96 #endif // REMOTING_PROTOCOL_ICE_CONNECTION_TO_CLIENT_H_ |
| OLD | NEW |