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 27 matching lines...) Expand all Loading... |
38 public IceTransport::EventHandler, | 38 public IceTransport::EventHandler, |
39 public ChannelDispatcherBase::EventHandler, | 39 public ChannelDispatcherBase::EventHandler, |
40 public base::NonThreadSafe { | 40 public base::NonThreadSafe { |
41 public: | 41 public: |
42 IceConnectionToHost(); | 42 IceConnectionToHost(); |
43 ~IceConnectionToHost() override; | 43 ~IceConnectionToHost() override; |
44 | 44 |
45 // ConnectionToHost interface. | 45 // ConnectionToHost interface. |
46 void set_client_stub(ClientStub* client_stub) override; | 46 void set_client_stub(ClientStub* client_stub) override; |
47 void set_clipboard_stub(ClipboardStub* clipboard_stub) override; | 47 void set_clipboard_stub(ClipboardStub* clipboard_stub) override; |
48 void set_video_stub(VideoStub* video_stub) override; | 48 void set_video_renderer(VideoRenderer* video_renderer) override; |
49 void set_audio_stub(AudioStub* audio_stub) override; | 49 void set_audio_stub(AudioStub* audio_stub) override; |
50 void Connect(scoped_ptr<Session> session, | 50 void Connect(scoped_ptr<Session> session, |
51 scoped_refptr<TransportContext> transport_context, | 51 scoped_refptr<TransportContext> transport_context, |
52 HostEventCallback* event_callback) override; | 52 HostEventCallback* event_callback) override; |
53 const SessionConfig& config() override; | 53 const SessionConfig& config() override; |
54 ClipboardStub* clipboard_forwarder() override; | 54 ClipboardStub* clipboard_forwarder() override; |
55 HostStub* host_stub() override; | 55 HostStub* host_stub() override; |
56 InputStub* input_stub() override; | 56 InputStub* input_stub() override; |
57 State state() const override; | 57 State state() const override; |
58 | 58 |
(...skipping 21 matching lines...) Expand all Loading... |
80 // Closes the P2P connection. | 80 // Closes the P2P connection. |
81 void CloseChannels(); | 81 void CloseChannels(); |
82 | 82 |
83 void SetState(State state, ErrorCode error); | 83 void SetState(State state, ErrorCode error); |
84 | 84 |
85 HostEventCallback* event_callback_ = nullptr; | 85 HostEventCallback* event_callback_ = nullptr; |
86 | 86 |
87 // Stub for incoming messages. | 87 // Stub for incoming messages. |
88 ClientStub* client_stub_ = nullptr; | 88 ClientStub* client_stub_ = nullptr; |
89 ClipboardStub* clipboard_stub_ = nullptr; | 89 ClipboardStub* clipboard_stub_ = nullptr; |
| 90 VideoRenderer* video_renderer_ = nullptr; |
90 AudioStub* audio_stub_ = nullptr; | 91 AudioStub* audio_stub_ = nullptr; |
91 | 92 |
92 scoped_ptr<Session> session_; | 93 scoped_ptr<Session> session_; |
93 scoped_ptr<IceTransport> transport_; | 94 scoped_ptr<IceTransport> transport_; |
94 | 95 |
95 scoped_ptr<MonitoredVideoStub> monitored_video_stub_; | 96 scoped_ptr<MonitoredVideoStub> monitored_video_stub_; |
96 scoped_ptr<ClientVideoDispatcher> video_dispatcher_; | 97 scoped_ptr<ClientVideoDispatcher> video_dispatcher_; |
97 scoped_ptr<AudioReader> audio_reader_; | 98 scoped_ptr<AudioReader> audio_reader_; |
98 scoped_ptr<ClientControlDispatcher> control_dispatcher_; | 99 scoped_ptr<ClientControlDispatcher> control_dispatcher_; |
99 scoped_ptr<ClientEventDispatcher> event_dispatcher_; | 100 scoped_ptr<ClientEventDispatcher> event_dispatcher_; |
100 ClipboardFilter clipboard_forwarder_; | 101 ClipboardFilter clipboard_forwarder_; |
101 InputFilter event_forwarder_; | 102 InputFilter event_forwarder_; |
102 | 103 |
103 // Internal state of the connection. | 104 // Internal state of the connection. |
104 State state_ = INITIALIZING; | 105 State state_ = INITIALIZING; |
105 ErrorCode error_ = OK; | 106 ErrorCode error_ = OK; |
106 | 107 |
107 private: | 108 private: |
108 DISALLOW_COPY_AND_ASSIGN(IceConnectionToHost); | 109 DISALLOW_COPY_AND_ASSIGN(IceConnectionToHost); |
109 }; | 110 }; |
110 | 111 |
111 } // namespace protocol | 112 } // namespace protocol |
112 } // namespace remoting | 113 } // namespace remoting |
113 | 114 |
114 #endif // REMOTING_PROTOCOL_ICE_CONNECTION_TO_HOST_H_ | 115 #endif // REMOTING_PROTOCOL_ICE_CONNECTION_TO_HOST_H_ |
OLD | NEW |