OLD | NEW |
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2012 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_CONNECTION_TO_CLIENT_H_ | 5 #ifndef REMOTING_PROTOCOL_CONNECTION_TO_CLIENT_H_ |
6 #define REMOTING_PROTOCOL_CONNECTION_TO_CLIENT_H_ | 6 #define REMOTING_PROTOCOL_CONNECTION_TO_CLIENT_H_ |
7 | 7 |
8 #include <deque> | 8 #include <deque> |
9 #include <string> | 9 #include <string> |
10 #include <vector> | 10 #include <vector> |
11 | 11 |
12 #include "base/memory/scoped_ptr.h" | 12 #include "base/memory/scoped_ptr.h" |
13 #include "base/synchronization/lock.h" | 13 #include "base/synchronization/lock.h" |
14 #include "base/threading/non_thread_safe.h" | 14 #include "base/threading/non_thread_safe.h" |
15 #include "remoting/protocol/audio_writer.h" | 15 #include "remoting/protocol/audio_writer.h" |
16 #include "remoting/protocol/session.h" | 16 #include "remoting/protocol/session.h" |
17 #include "remoting/protocol/video_writer.h" | |
18 | 17 |
19 namespace remoting { | 18 namespace remoting { |
20 namespace protocol { | 19 namespace protocol { |
21 | 20 |
22 class ClientStub; | 21 class ClientStub; |
23 class ClipboardStub; | 22 class ClipboardStub; |
24 class HostStub; | |
25 class InputStub; | |
26 class HostControlDispatcher; | 23 class HostControlDispatcher; |
27 class HostEventDispatcher; | 24 class HostEventDispatcher; |
| 25 class HostStub; |
| 26 class HostVideoDispatcher; |
| 27 class InputStub; |
| 28 class VideoStub; |
28 | 29 |
29 // This class represents a remote viewer connection to the chromoting | 30 // This class represents a remote viewer connection to the chromoting |
30 // 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 |
31 // stubs. | 32 // stubs. |
32 class ConnectionToClient : public base::NonThreadSafe, | 33 class ConnectionToClient : public base::NonThreadSafe, |
33 public Session::EventHandler { | 34 public Session::EventHandler { |
34 public: | 35 public: |
35 class EventHandler { | 36 class EventHandler { |
36 public: | 37 public: |
37 // Called when the network connection is authenticating | 38 // Called when the network connection is authenticating |
(...skipping 83 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
121 // Stubs that are called for incoming messages. | 122 // Stubs that are called for incoming messages. |
122 ClipboardStub* clipboard_stub_; | 123 ClipboardStub* clipboard_stub_; |
123 HostStub* host_stub_; | 124 HostStub* host_stub_; |
124 InputStub* input_stub_; | 125 InputStub* input_stub_; |
125 | 126 |
126 // The libjingle channel used to send and receive data from the remote client. | 127 // The libjingle channel used to send and receive data from the remote client. |
127 scoped_ptr<Session> session_; | 128 scoped_ptr<Session> session_; |
128 | 129 |
129 scoped_ptr<HostControlDispatcher> control_dispatcher_; | 130 scoped_ptr<HostControlDispatcher> control_dispatcher_; |
130 scoped_ptr<HostEventDispatcher> event_dispatcher_; | 131 scoped_ptr<HostEventDispatcher> event_dispatcher_; |
131 scoped_ptr<VideoWriter> video_writer_; | 132 scoped_ptr<HostVideoDispatcher> video_dispatcher_; |
132 scoped_ptr<AudioWriter> audio_writer_; | 133 scoped_ptr<AudioWriter> audio_writer_; |
133 | 134 |
134 DISALLOW_COPY_AND_ASSIGN(ConnectionToClient); | 135 DISALLOW_COPY_AND_ASSIGN(ConnectionToClient); |
135 }; | 136 }; |
136 | 137 |
137 } // namespace protocol | 138 } // namespace protocol |
138 } // namespace remoting | 139 } // namespace remoting |
139 | 140 |
140 #endif // REMOTING_PROTOCOL_CONNECTION_TO_CLIENT_H_ | 141 #endif // REMOTING_PROTOCOL_CONNECTION_TO_CLIENT_H_ |
OLD | NEW |