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_CLIENT_H_ | 5 #ifndef REMOTING_PROTOCOL_WEBRTC_CONNECTION_TO_CLIENT_H_ |
6 #define REMOTING_PROTOCOL_WEBRTC_CONNECTION_TO_CLIENT_H_ | 6 #define REMOTING_PROTOCOL_WEBRTC_CONNECTION_TO_CLIENT_H_ |
7 | 7 |
8 #include <stdint.h> | 8 #include <stdint.h> |
9 | 9 |
10 #include <string> | 10 #include <string> |
(...skipping 43 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
54 void OnWebrtcTransportConnecting() override; | 54 void OnWebrtcTransportConnecting() override; |
55 void OnWebrtcTransportConnected() override; | 55 void OnWebrtcTransportConnected() override; |
56 void OnWebrtcTransportError(ErrorCode error) override; | 56 void OnWebrtcTransportError(ErrorCode error) override; |
57 void OnWebrtcTransportMediaStreamAdded( | 57 void OnWebrtcTransportMediaStreamAdded( |
58 scoped_refptr<webrtc::MediaStreamInterface> stream) override; | 58 scoped_refptr<webrtc::MediaStreamInterface> stream) override; |
59 void OnWebrtcTransportMediaStreamRemoved( | 59 void OnWebrtcTransportMediaStreamRemoved( |
60 scoped_refptr<webrtc::MediaStreamInterface> stream) override; | 60 scoped_refptr<webrtc::MediaStreamInterface> stream) override; |
61 | 61 |
62 // ChannelDispatcherBase::EventHandler interface. | 62 // ChannelDispatcherBase::EventHandler interface. |
63 void OnChannelInitialized(ChannelDispatcherBase* channel_dispatcher) override; | 63 void OnChannelInitialized(ChannelDispatcherBase* channel_dispatcher) override; |
64 void OnChannelError(ChannelDispatcherBase* channel_dispatcher, | |
65 ErrorCode error) override; | |
66 | 64 |
67 private: | 65 private: |
68 base::ThreadChecker thread_checker_; | 66 base::ThreadChecker thread_checker_; |
69 | 67 |
70 // Event handler for handling events sent from this object. | 68 // Event handler for handling events sent from this object. |
71 ConnectionToClient::EventHandler* event_handler_ = nullptr; | 69 ConnectionToClient::EventHandler* event_handler_ = nullptr; |
72 | 70 |
73 WebrtcTransport transport_; | 71 WebrtcTransport transport_; |
74 | 72 |
75 scoped_ptr<Session> session_; | 73 scoped_ptr<Session> session_; |
76 | 74 |
77 scoped_ptr<HostControlDispatcher> control_dispatcher_; | 75 scoped_ptr<HostControlDispatcher> control_dispatcher_; |
78 scoped_ptr<HostEventDispatcher> event_dispatcher_; | 76 scoped_ptr<HostEventDispatcher> event_dispatcher_; |
79 | 77 |
80 DISALLOW_COPY_AND_ASSIGN(WebrtcConnectionToClient); | 78 DISALLOW_COPY_AND_ASSIGN(WebrtcConnectionToClient); |
81 }; | 79 }; |
82 | 80 |
83 } // namespace protocol | 81 } // namespace protocol |
84 } // namespace remoting | 82 } // namespace remoting |
85 | 83 |
86 #endif // REMOTING_PROTOCOL_WEBRTC_CONNECTION_TO_CLIENT_H_ | 84 #endif // REMOTING_PROTOCOL_WEBRTC_CONNECTION_TO_CLIENT_H_ |
OLD | NEW |