| 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_HOST_H_ | 5 #ifndef REMOTING_PROTOCOL_ICE_CONNECTION_TO_HOST_H_ |
| 6 #define REMOTING_PROTOCOL_ICE_CONNECTION_TO_HOST_H_ | 6 #define REMOTING_PROTOCOL_ICE_CONNECTION_TO_HOST_H_ |
| 7 | 7 |
| 8 #include <memory> | 8 #include <memory> |
| 9 #include <set> | 9 #include <set> |
| 10 #include <string> | 10 #include <string> |
| (...skipping 48 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 59 // Session::EventHandler interface. | 59 // Session::EventHandler interface. |
| 60 void OnSessionStateChange(Session::State state) override; | 60 void OnSessionStateChange(Session::State state) override; |
| 61 | 61 |
| 62 // IceTransport::EventHandler interface. | 62 // IceTransport::EventHandler interface. |
| 63 void OnIceTransportRouteChange(const std::string& channel_name, | 63 void OnIceTransportRouteChange(const std::string& channel_name, |
| 64 const TransportRoute& route) override; | 64 const TransportRoute& route) override; |
| 65 void OnIceTransportError(ErrorCode error) override; | 65 void OnIceTransportError(ErrorCode error) override; |
| 66 | 66 |
| 67 // ChannelDispatcherBase::EventHandler interface. | 67 // ChannelDispatcherBase::EventHandler interface. |
| 68 void OnChannelInitialized(ChannelDispatcherBase* channel_dispatcher) override; | 68 void OnChannelInitialized(ChannelDispatcherBase* channel_dispatcher) override; |
| 69 void OnChannelClosed(ChannelDispatcherBase* channel_dispatcher) override; |
| 69 | 70 |
| 70 // MonitoredVideoStub::EventHandler interface. | 71 // MonitoredVideoStub::EventHandler interface. |
| 71 virtual void OnVideoChannelStatus(bool active); | 72 virtual void OnVideoChannelStatus(bool active); |
| 72 | 73 |
| 73 void NotifyIfChannelsReady(); | 74 void NotifyIfChannelsReady(); |
| 74 | 75 |
| 75 // Closes the P2P connection. | 76 // Closes the P2P connection. |
| 76 void CloseChannels(); | 77 void CloseChannels(); |
| 77 | 78 |
| 78 void SetState(State state, ErrorCode error); | 79 void SetState(State state, ErrorCode error); |
| (...skipping 22 matching lines...) Expand all Loading... |
| 101 ErrorCode error_ = OK; | 102 ErrorCode error_ = OK; |
| 102 | 103 |
| 103 private: | 104 private: |
| 104 DISALLOW_COPY_AND_ASSIGN(IceConnectionToHost); | 105 DISALLOW_COPY_AND_ASSIGN(IceConnectionToHost); |
| 105 }; | 106 }; |
| 106 | 107 |
| 107 } // namespace protocol | 108 } // namespace protocol |
| 108 } // namespace remoting | 109 } // namespace remoting |
| 109 | 110 |
| 110 #endif // REMOTING_PROTOCOL_ICE_CONNECTION_TO_HOST_H_ | 111 #endif // REMOTING_PROTOCOL_ICE_CONNECTION_TO_HOST_H_ |
| OLD | NEW |