OLD | NEW |
1 /* | 1 /* |
2 * Copyright 2017 The WebRTC project authors. All Rights Reserved. | 2 * Copyright 2017 The WebRTC project authors. All Rights Reserved. |
3 * | 3 * |
4 * Use of this source code is governed by a BSD-style license | 4 * Use of this source code is governed by a BSD-style license |
5 * that can be found in the LICENSE file in the root of the source | 5 * that can be found in the LICENSE file in the root of the source |
6 * tree. An additional intellectual property rights grant can be found | 6 * tree. An additional intellectual property rights grant can be found |
7 * in the file PATENTS. All contributing project authors may | 7 * in the file PATENTS. All contributing project authors may |
8 * be found in the AUTHORS file in the root of the source tree. | 8 * be found in the AUTHORS file in the root of the source tree. |
9 */ | 9 */ |
10 | 10 |
11 #include "webrtc/api/ortcfactory.h" | 11 #include "webrtc/pc/ortcfactory.h" |
12 | 12 |
13 #include <string> | 13 #include <string> |
14 #include <utility> // For std::move. | 14 #include <utility> // For std::move. |
15 | 15 |
16 #include "webrtc/base/bind.h" | 16 #include "webrtc/base/bind.h" |
17 #include "webrtc/base/asyncpacketsocket.h" | 17 #include "webrtc/base/asyncpacketsocket.h" |
18 #include "webrtc/p2p/base/basicpacketsocketfactory.h" | 18 #include "webrtc/p2p/base/basicpacketsocketfactory.h" |
19 #include "webrtc/p2p/base/udptransport.h" | 19 #include "webrtc/p2p/base/udptransport.h" |
20 | 20 |
21 namespace webrtc { | 21 namespace webrtc { |
(...skipping 88 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
110 LOG(LS_INFO) << "Created UDP socket with address " | 110 LOG(LS_INFO) << "Created UDP socket with address " |
111 << socket->GetLocalAddress().ToSensitiveString() << "."; | 111 << socket->GetLocalAddress().ToSensitiveString() << "."; |
112 // Use proxy so that calls to the returned object are invoked on the network | 112 // Use proxy so that calls to the returned object are invoked on the network |
113 // thread. | 113 // thread. |
114 return UdpTransportProxy::Create( | 114 return UdpTransportProxy::Create( |
115 signaling_thread_, network_thread_, | 115 signaling_thread_, network_thread_, |
116 new cricket::UdpTransport(std::string(), std::move(socket))); | 116 new cricket::UdpTransport(std::string(), std::move(socket))); |
117 } | 117 } |
118 | 118 |
119 } // namespace webrtc | 119 } // namespace webrtc |
OLD | NEW |