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 #include "remoting/protocol/webrtc_connection_to_client.h" | 5 #include "remoting/protocol/webrtc_connection_to_client.h" |
6 | 6 |
7 #include <utility> | 7 #include <utility> |
8 | 8 |
9 #include "base/bind.h" | 9 #include "base/bind.h" |
10 #include "base/location.h" | 10 #include "base/location.h" |
11 #include "jingle/glue/thread_wrapper.h" | 11 #include "jingle/glue/thread_wrapper.h" |
12 #include "net/base/io_buffer.h" | 12 #include "net/base/io_buffer.h" |
13 #include "remoting/codec/video_encoder.h" | 13 #include "remoting/codec/video_encoder.h" |
14 #include "remoting/codec/video_encoder_verbatim.h" | 14 #include "remoting/codec/video_encoder_verbatim.h" |
15 #include "remoting/codec/video_encoder_vpx.h" | 15 #include "remoting/codec/video_encoder_vpx.h" |
16 #include "remoting/protocol/audio_writer.h" | 16 #include "remoting/protocol/audio_writer.h" |
17 #include "remoting/protocol/clipboard_stub.h" | 17 #include "remoting/protocol/clipboard_stub.h" |
18 #include "remoting/protocol/host_control_dispatcher.h" | 18 #include "remoting/protocol/host_control_dispatcher.h" |
19 #include "remoting/protocol/host_event_dispatcher.h" | 19 #include "remoting/protocol/host_event_dispatcher.h" |
20 #include "remoting/protocol/host_stub.h" | 20 #include "remoting/protocol/host_stub.h" |
21 #include "remoting/protocol/input_stub.h" | 21 #include "remoting/protocol/input_stub.h" |
22 #include "remoting/protocol/transport_context.h" | 22 #include "remoting/protocol/transport_context.h" |
23 #include "remoting/protocol/webrtc_transport.h" | 23 #include "remoting/protocol/webrtc_transport.h" |
24 #include "remoting/protocol/webrtc_video_capturer_adapter.h" | 24 #include "remoting/protocol/webrtc_video_capturer_adapter.h" |
25 #include "remoting/protocol/webrtc_video_stream.h" | 25 #include "remoting/protocol/webrtc_video_stream.h" |
26 #include "third_party/webrtc/api/mediastreaminterface.h" | 26 #include "third_party/webrtc/api/mediastreaminterface.h" |
27 #include "third_party/webrtc/api/peerconnectioninterface.h" | 27 #include "third_party/webrtc/api/peerconnectioninterface.h" |
28 #include "third_party/webrtc/api/test/fakeconstraints.h" | 28 #include "third_party/webrtc/api/test/fakeconstraints.h" |
29 #include "third_party/webrtc/api/videosourceinterface.h" | |
30 | 29 |
31 namespace remoting { | 30 namespace remoting { |
32 namespace protocol { | 31 namespace protocol { |
33 | 32 |
34 // Currently the network thread is also used as worker thread for webrtc. | 33 // Currently the network thread is also used as worker thread for webrtc. |
35 // | 34 // |
36 // TODO(sergeyu): Figure out if we would benefit from using a separate | 35 // TODO(sergeyu): Figure out if we would benefit from using a separate |
37 // thread as a worker thread. | 36 // thread as a worker thread. |
38 WebrtcConnectionToClient::WebrtcConnectionToClient( | 37 WebrtcConnectionToClient::WebrtcConnectionToClient( |
39 scoped_ptr<protocol::Session> session, | 38 scoped_ptr<protocol::Session> session, |
(...skipping 129 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
169 DCHECK(thread_checker_.CalledOnValidThread()); | 168 DCHECK(thread_checker_.CalledOnValidThread()); |
170 | 169 |
171 if (control_dispatcher_ && control_dispatcher_->is_connected() && | 170 if (control_dispatcher_ && control_dispatcher_->is_connected() && |
172 event_dispatcher_ && event_dispatcher_->is_connected()) { | 171 event_dispatcher_ && event_dispatcher_->is_connected()) { |
173 event_handler_->OnConnectionChannelsConnected(this); | 172 event_handler_->OnConnectionChannelsConnected(this); |
174 } | 173 } |
175 } | 174 } |
176 | 175 |
177 } // namespace protocol | 176 } // namespace protocol |
178 } // namespace remoting | 177 } // namespace remoting |
OLD | NEW |