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_data_stream_adapter.h" | 5 #include "remoting/protocol/webrtc_data_stream_adapter.h" |
6 | 6 |
7 #include <stdint.h> | 7 #include <stdint.h> |
8 | 8 |
9 #include "base/bind.h" | 9 #include "base/bind.h" |
10 #include "base/callback.h" | 10 #include "base/callback.h" |
11 #include "base/callback_helpers.h" | 11 #include "base/callback_helpers.h" |
12 #include "base/location.h" | 12 #include "base/location.h" |
13 #include "base/macros.h" | 13 #include "base/macros.h" |
14 #include "base/memory/ptr_util.h" | 14 #include "base/memory/ptr_util.h" |
15 #include "base/thread_task_runner_handle.h" | 15 #include "base/threading/thread_task_runner_handle.h" |
16 #include "net/base/net_errors.h" | 16 #include "net/base/net_errors.h" |
17 #include "remoting/base/compound_buffer.h" | 17 #include "remoting/base/compound_buffer.h" |
18 #include "remoting/protocol/message_pipe.h" | 18 #include "remoting/protocol/message_pipe.h" |
19 #include "remoting/protocol/message_serialization.h" | 19 #include "remoting/protocol/message_serialization.h" |
20 | 20 |
21 namespace remoting { | 21 namespace remoting { |
22 namespace protocol { | 22 namespace protocol { |
23 | 23 |
24 class WebrtcDataStreamAdapter::Channel : public MessagePipe, | 24 class WebrtcDataStreamAdapter::Channel : public MessagePipe, |
25 public webrtc::DataChannelObserver { | 25 public webrtc::DataChannelObserver { |
(...skipping 204 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
230 // |connected_callback|. | 230 // |connected_callback|. |
231 pending_channel.connected_callback.Run(std::move(pending_channel.channel)); | 231 pending_channel.connected_callback.Run(std::move(pending_channel.channel)); |
232 } | 232 } |
233 | 233 |
234 void WebrtcDataStreamAdapter::OnChannelError() { | 234 void WebrtcDataStreamAdapter::OnChannelError() { |
235 error_callback_.Run(CHANNEL_CONNECTION_ERROR); | 235 error_callback_.Run(CHANNEL_CONNECTION_ERROR); |
236 } | 236 } |
237 | 237 |
238 } // namespace protocol | 238 } // namespace protocol |
239 } // namespace remoting | 239 } // namespace remoting |
OLD | NEW |