| 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 <set> | 8 #include <set> |
| 9 #include <string> | 9 #include <string> |
| 10 | 10 |
| (...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 OnChannelError(ChannelDispatcherBase* channel_dispatcher, | |
| 70 ErrorCode error) override; | |
| 71 | 69 |
| 72 // MonitoredVideoStub::EventHandler interface. | 70 // MonitoredVideoStub::EventHandler interface. |
| 73 virtual void OnVideoChannelStatus(bool active); | 71 virtual void OnVideoChannelStatus(bool active); |
| 74 | 72 |
| 75 void NotifyIfChannelsReady(); | 73 void NotifyIfChannelsReady(); |
| 76 | 74 |
| 77 void CloseOnError(ErrorCode error); | |
| 78 | |
| 79 // Closes the P2P connection. | 75 // Closes the P2P connection. |
| 80 void CloseChannels(); | 76 void CloseChannels(); |
| 81 | 77 |
| 82 void SetState(State state, ErrorCode error); | 78 void SetState(State state, ErrorCode error); |
| 83 | 79 |
| 84 HostEventCallback* event_callback_ = nullptr; | 80 HostEventCallback* event_callback_ = nullptr; |
| 85 | 81 |
| 86 // Stub for incoming messages. | 82 // Stub for incoming messages. |
| 87 ClientStub* client_stub_ = nullptr; | 83 ClientStub* client_stub_ = nullptr; |
| 88 ClipboardStub* clipboard_stub_ = nullptr; | 84 ClipboardStub* clipboard_stub_ = nullptr; |
| (...skipping 16 matching lines...) Expand all Loading... |
| 105 ErrorCode error_ = OK; | 101 ErrorCode error_ = OK; |
| 106 | 102 |
| 107 private: | 103 private: |
| 108 DISALLOW_COPY_AND_ASSIGN(IceConnectionToHost); | 104 DISALLOW_COPY_AND_ASSIGN(IceConnectionToHost); |
| 109 }; | 105 }; |
| 110 | 106 |
| 111 } // namespace protocol | 107 } // namespace protocol |
| 112 } // namespace remoting | 108 } // namespace remoting |
| 113 | 109 |
| 114 #endif // REMOTING_PROTOCOL_ICE_CONNECTION_TO_HOST_H_ | 110 #endif // REMOTING_PROTOCOL_ICE_CONNECTION_TO_HOST_H_ |
| OLD | NEW |