| 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 <utility> | 7 #include <utility> |
| 8 | 8 |
| 9 #include "base/callback_helpers.h" | 9 #include "base/callback_helpers.h" |
| 10 #include "base/macros.h" | 10 #include "base/macros.h" |
| 11 #include "base/single_thread_task_runner.h" | 11 #include "base/single_thread_task_runner.h" |
| 12 #include "base/strings/string_number_conversions.h" | 12 #include "base/strings/string_number_conversions.h" |
| 13 #include "base/task_runner_util.h" | 13 #include "base/task_runner_util.h" |
| 14 #include "base/thread_task_runner_handle.h" | 14 #include "base/thread_task_runner_handle.h" |
| 15 #include "jingle/glue/thread_wrapper.h" | 15 #include "jingle/glue/thread_wrapper.h" |
| 16 #include "remoting/protocol/stream_message_pipe_adapter.h" | 16 #include "remoting/protocol/stream_message_pipe_adapter.h" |
| 17 #include "remoting/protocol/transport_context.h" | 17 #include "remoting/protocol/transport_context.h" |
| 18 #include "third_party/libjingle/source/talk/app/webrtc/test/fakeconstraints.h" | 18 #include "third_party/webrtc/api/test/fakeconstraints.h" |
| 19 #include "third_party/webrtc/libjingle/xmllite/xmlelement.h" | 19 #include "third_party/webrtc/libjingle/xmllite/xmlelement.h" |
| 20 #include "third_party/webrtc/modules/audio_device/include/fake_audio_device.h" | 20 #include "third_party/webrtc/modules/audio_device/include/fake_audio_device.h" |
| 21 | 21 |
| 22 using buzz::QName; | 22 using buzz::QName; |
| 23 using buzz::XmlElement; | 23 using buzz::XmlElement; |
| 24 | 24 |
| 25 namespace remoting { | 25 namespace remoting { |
| 26 namespace protocol { | 26 namespace protocol { |
| 27 | 27 |
| 28 namespace { | 28 namespace { |
| (...skipping 459 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 488 peer_connection_->Close(); | 488 peer_connection_->Close(); |
| 489 peer_connection_ = nullptr; | 489 peer_connection_ = nullptr; |
| 490 peer_connection_factory_ = nullptr; | 490 peer_connection_factory_ = nullptr; |
| 491 | 491 |
| 492 if (error != OK) | 492 if (error != OK) |
| 493 event_handler_->OnWebrtcTransportError(error); | 493 event_handler_->OnWebrtcTransportError(error); |
| 494 } | 494 } |
| 495 | 495 |
| 496 } // namespace protocol | 496 } // namespace protocol |
| 497 } // namespace remoting | 497 } // namespace remoting |
| OLD | NEW |