| 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 <string> | 8 #include <string> |
| 9 | 9 |
| 10 #include "base/macros.h" | 10 #include "base/macros.h" |
| (...skipping 44 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 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 OnWebrtcTransportMediaStreamAdded( | 58 void OnWebrtcTransportMediaStreamAdded( |
| 59 scoped_refptr<webrtc::MediaStreamInterface> stream) override; | 59 scoped_refptr<webrtc::MediaStreamInterface> stream) override; |
| 60 void OnWebrtcTransportMediaStreamRemoved( | 60 void OnWebrtcTransportMediaStreamRemoved( |
| 61 scoped_refptr<webrtc::MediaStreamInterface> stream) override; | 61 scoped_refptr<webrtc::MediaStreamInterface> stream) override; |
| 62 | 62 |
| 63 // ChannelDispatcherBase::EventHandler interface. | 63 // ChannelDispatcherBase::EventHandler interface. |
| 64 void OnChannelInitialized(ChannelDispatcherBase* channel_dispatcher) override; | 64 void OnChannelInitialized(ChannelDispatcherBase* channel_dispatcher) override; |
| 65 void OnChannelError(ChannelDispatcherBase* channel_dispatcher, | |
| 66 ErrorCode error) override; | |
| 67 | 65 |
| 68 void NotifyIfChannelsReady(); | 66 void NotifyIfChannelsReady(); |
| 69 | 67 |
| 70 void CloseChannels(); | 68 void CloseChannels(); |
| 71 | 69 |
| 72 void SetState(State state, ErrorCode error); | 70 void SetState(State state, ErrorCode error); |
| 73 | 71 |
| 74 HostEventCallback* event_callback_ = nullptr; | 72 HostEventCallback* event_callback_ = nullptr; |
| 75 | 73 |
| 76 // Stub for incoming messages. | 74 // Stub for incoming messages. |
| (...skipping 16 matching lines...) Expand all Loading... |
| 93 ErrorCode error_ = OK; | 91 ErrorCode error_ = OK; |
| 94 | 92 |
| 95 private: | 93 private: |
| 96 DISALLOW_COPY_AND_ASSIGN(WebrtcConnectionToHost); | 94 DISALLOW_COPY_AND_ASSIGN(WebrtcConnectionToHost); |
| 97 }; | 95 }; |
| 98 | 96 |
| 99 } // namespace protocol | 97 } // namespace protocol |
| 100 } // namespace remoting | 98 } // namespace remoting |
| 101 | 99 |
| 102 #endif // REMOTING_PROTOCOL_WEBRTC_CONNECTION_TO_HOST_H_ | 100 #endif // REMOTING_PROTOCOL_WEBRTC_CONNECTION_TO_HOST_H_ |
| OLD | NEW |