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_CLIENT_H_ | 5 #ifndef REMOTING_PROTOCOL_ICE_CONNECTION_TO_CLIENT_H_ |
6 #define REMOTING_PROTOCOL_ICE_CONNECTION_TO_CLIENT_H_ | 6 #define REMOTING_PROTOCOL_ICE_CONNECTION_TO_CLIENT_H_ |
7 | 7 |
8 #include <stdint.h> | 8 #include <stdint.h> |
9 | 9 |
10 #include <memory> | 10 #include <memory> |
11 #include <string> | 11 #include <string> |
12 | 12 |
13 #include "base/macros.h" | 13 #include "base/macros.h" |
14 #include "base/memory/ref_counted.h" | 14 #include "base/memory/ref_counted.h" |
15 #include "base/single_thread_task_runner.h" | 15 #include "base/single_thread_task_runner.h" |
16 #include "base/threading/thread_checker.h" | 16 #include "base/threading/thread_checker.h" |
17 #include "remoting/protocol/channel_dispatcher_base.h" | 17 #include "remoting/protocol/channel_dispatcher_base.h" |
18 #include "remoting/protocol/connection_to_client.h" | 18 #include "remoting/protocol/connection_to_client.h" |
19 #include "remoting/protocol/ice_transport.h" | 19 #include "remoting/protocol/ice_transport.h" |
20 #include "remoting/protocol/session.h" | 20 #include "remoting/protocol/session.h" |
21 | 21 |
22 namespace remoting { | 22 namespace remoting { |
23 namespace protocol { | 23 namespace protocol { |
24 | 24 |
25 class AudioWriter; | 25 class AudioWriter; |
26 class HostControlDispatcher; | 26 class HostControlDispatcher; |
27 class HostEventDispatcher; | 27 class HostEventDispatcher; |
28 class HostVideoDispatcher; | 28 class HostVideoDispatcher; |
29 class VideoFeedbackStub; | |
30 class VideoFramePump; | |
31 | 29 |
32 // This class represents a remote viewer connection to the chromoting | 30 // This class represents a remote viewer connection to the chromoting |
33 // host. It sets up all protocol channels and connects them to the | 31 // host. It sets up all protocol channels and connects them to the |
34 // stubs. | 32 // stubs. |
35 class IceConnectionToClient : public ConnectionToClient, | 33 class IceConnectionToClient : public ConnectionToClient, |
36 public Session::EventHandler, | 34 public Session::EventHandler, |
37 public IceTransport::EventHandler, | 35 public IceTransport::EventHandler, |
38 public ChannelDispatcherBase::EventHandler { | 36 public ChannelDispatcherBase::EventHandler { |
39 public: | 37 public: |
40 IceConnectionToClient( | 38 IceConnectionToClient( |
(...skipping 54 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
95 std::unique_ptr<HostVideoDispatcher> video_dispatcher_; | 93 std::unique_ptr<HostVideoDispatcher> video_dispatcher_; |
96 std::unique_ptr<AudioWriter> audio_writer_; | 94 std::unique_ptr<AudioWriter> audio_writer_; |
97 | 95 |
98 DISALLOW_COPY_AND_ASSIGN(IceConnectionToClient); | 96 DISALLOW_COPY_AND_ASSIGN(IceConnectionToClient); |
99 }; | 97 }; |
100 | 98 |
101 } // namespace protocol | 99 } // namespace protocol |
102 } // namespace remoting | 100 } // namespace remoting |
103 | 101 |
104 #endif // REMOTING_PROTOCOL_ICE_CONNECTION_TO_CLIENT_H_ | 102 #endif // REMOTING_PROTOCOL_ICE_CONNECTION_TO_CLIENT_H_ |
OLD | NEW |