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_transport.h" | 5 #include "remoting/protocol/webrtc_transport.h" |
6 | 6 |
7 #include <string> | 7 #include <string> |
8 #include <utility> | 8 #include <utility> |
9 #include <vector> | 9 #include <vector> |
10 | 10 |
11 #include "base/base64.h" | 11 #include "base/base64.h" |
12 #include "base/callback_helpers.h" | 12 #include "base/callback_helpers.h" |
13 #include "base/command_line.h" | 13 #include "base/command_line.h" |
14 #include "base/macros.h" | 14 #include "base/macros.h" |
15 #include "base/memory/ptr_util.h" | 15 #include "base/memory/ptr_util.h" |
16 #include "base/single_thread_task_runner.h" | 16 #include "base/single_thread_task_runner.h" |
17 #include "base/strings/string_number_conversions.h" | 17 #include "base/strings/string_number_conversions.h" |
18 #include "base/strings/string_split.h" | 18 #include "base/strings/string_split.h" |
19 #include "base/strings/string_util.h" | 19 #include "base/strings/string_util.h" |
20 #include "base/task_runner_util.h" | 20 #include "base/task_runner_util.h" |
21 #include "base/thread_task_runner_handle.h" | 21 #include "base/threading/thread_task_runner_handle.h" |
22 #include "jingle/glue/thread_wrapper.h" | 22 #include "jingle/glue/thread_wrapper.h" |
23 #include "remoting/protocol/authenticator.h" | 23 #include "remoting/protocol/authenticator.h" |
24 #include "remoting/protocol/port_allocator_factory.h" | 24 #include "remoting/protocol/port_allocator_factory.h" |
25 #include "remoting/protocol/stream_message_pipe_adapter.h" | 25 #include "remoting/protocol/stream_message_pipe_adapter.h" |
26 #include "remoting/protocol/transport_context.h" | 26 #include "remoting/protocol/transport_context.h" |
27 #include "remoting/protocol/webrtc_video_encoder.h" | 27 #include "remoting/protocol/webrtc_video_encoder.h" |
28 #include "third_party/webrtc/api/test/fakeconstraints.h" | 28 #include "third_party/webrtc/api/test/fakeconstraints.h" |
29 #include "third_party/webrtc/libjingle/xmllite/xmlelement.h" | 29 #include "third_party/webrtc/libjingle/xmllite/xmlelement.h" |
30 #include "third_party/webrtc/modules/audio_device/include/fake_audio_device.h" | 30 #include "third_party/webrtc/modules/audio_device/include/fake_audio_device.h" |
31 | 31 |
(...skipping 533 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
565 peer_connection_->Close(); | 565 peer_connection_->Close(); |
566 peer_connection_ = nullptr; | 566 peer_connection_ = nullptr; |
567 peer_connection_factory_ = nullptr; | 567 peer_connection_factory_ = nullptr; |
568 | 568 |
569 if (error != OK) | 569 if (error != OK) |
570 event_handler_->OnWebrtcTransportError(error); | 570 event_handler_->OnWebrtcTransportError(error); |
571 } | 571 } |
572 | 572 |
573 } // namespace protocol | 573 } // namespace protocol |
574 } // namespace remoting | 574 } // namespace remoting |
OLD | NEW |