| 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_WEBRTC_CONNECTION_TO_HOST_H_ | 5 #ifndef REMOTING_PROTOCOL_WEBRTC_CONNECTION_TO_HOST_H_ |
| 6 #define REMOTING_PROTOCOL_WEBRTC_CONNECTION_TO_HOST_H_ | 6 #define REMOTING_PROTOCOL_WEBRTC_CONNECTION_TO_HOST_H_ |
| 7 | 7 |
| 8 #include <memory> | 8 #include <memory> |
| 9 #include <string> | 9 #include <string> |
| 10 | 10 |
| (...skipping 37 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 48 State state() const override; | 48 State state() const override; |
| 49 | 49 |
| 50 private: | 50 private: |
| 51 // Session::EventHandler interface. | 51 // Session::EventHandler interface. |
| 52 void OnSessionStateChange(Session::State state) override; | 52 void OnSessionStateChange(Session::State state) override; |
| 53 | 53 |
| 54 // WebrtcTransport::EventHandler interface. | 54 // WebrtcTransport::EventHandler interface. |
| 55 void OnWebrtcTransportConnecting() override; | 55 void OnWebrtcTransportConnecting() override; |
| 56 void OnWebrtcTransportConnected() override; | 56 void OnWebrtcTransportConnected() override; |
| 57 void OnWebrtcTransportError(ErrorCode error) override; | 57 void OnWebrtcTransportError(ErrorCode error) override; |
| 58 void OnWebrtcTransportIncomingDataChannel( |
| 59 const std::string& name, |
| 60 std::unique_ptr<MessagePipe> pipe) override; |
| 58 void OnWebrtcTransportMediaStreamAdded( | 61 void OnWebrtcTransportMediaStreamAdded( |
| 59 scoped_refptr<webrtc::MediaStreamInterface> stream) override; | 62 scoped_refptr<webrtc::MediaStreamInterface> stream) override; |
| 60 void OnWebrtcTransportMediaStreamRemoved( | 63 void OnWebrtcTransportMediaStreamRemoved( |
| 61 scoped_refptr<webrtc::MediaStreamInterface> stream) override; | 64 scoped_refptr<webrtc::MediaStreamInterface> stream) override; |
| 62 | 65 |
| 63 // ChannelDispatcherBase::EventHandler interface. | 66 // ChannelDispatcherBase::EventHandler interface. |
| 64 void OnChannelInitialized(ChannelDispatcherBase* channel_dispatcher) override; | 67 void OnChannelInitialized(ChannelDispatcherBase* channel_dispatcher) override; |
| 68 void OnChannelClosed(ChannelDispatcherBase* channel_dispatcher) override; |
| 65 | 69 |
| 66 void NotifyIfChannelsReady(); | 70 void NotifyIfChannelsReady(); |
| 67 | 71 |
| 68 void CloseChannels(); | 72 void CloseChannels(); |
| 69 | 73 |
| 70 void SetState(State state, ErrorCode error); | 74 void SetState(State state, ErrorCode error); |
| 71 | 75 |
| 72 HostEventCallback* event_callback_ = nullptr; | 76 HostEventCallback* event_callback_ = nullptr; |
| 73 | 77 |
| 74 // Stub for incoming messages. | 78 // Stub for incoming messages. |
| (...skipping 16 matching lines...) Expand all Loading... |
| 91 ErrorCode error_ = OK; | 95 ErrorCode error_ = OK; |
| 92 | 96 |
| 93 private: | 97 private: |
| 94 DISALLOW_COPY_AND_ASSIGN(WebrtcConnectionToHost); | 98 DISALLOW_COPY_AND_ASSIGN(WebrtcConnectionToHost); |
| 95 }; | 99 }; |
| 96 | 100 |
| 97 } // namespace protocol | 101 } // namespace protocol |
| 98 } // namespace remoting | 102 } // namespace remoting |
| 99 | 103 |
| 100 #endif // REMOTING_PROTOCOL_WEBRTC_CONNECTION_TO_HOST_H_ | 104 #endif // REMOTING_PROTOCOL_WEBRTC_CONNECTION_TO_HOST_H_ |
| OLD | NEW |