| 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 |
| (...skipping 26 matching lines...) Expand all Loading... |
| 37 rtc::Thread* signaling_thread, | 37 rtc::Thread* signaling_thread, |
| 38 rtc::NetworkManager* network_manager, | 38 rtc::NetworkManager* network_manager, |
| 39 rtc::PacketSocketFactory* socket_factory, | 39 rtc::PacketSocketFactory* socket_factory, |
| 40 AudioDeviceModule* adm, | 40 AudioDeviceModule* adm, |
| 41 std::unique_ptr<cricket::MediaEngineInterface> media_engine); | 41 std::unique_ptr<cricket::MediaEngineInterface> media_engine); |
| 42 | 42 |
| 43 RTCErrorOr<std::unique_ptr<RtpTransportControllerInterface>> | 43 RTCErrorOr<std::unique_ptr<RtpTransportControllerInterface>> |
| 44 CreateRtpTransportController() override; | 44 CreateRtpTransportController() override; |
| 45 | 45 |
| 46 RTCErrorOr<std::unique_ptr<RtpTransportInterface>> CreateRtpTransport( | 46 RTCErrorOr<std::unique_ptr<RtpTransportInterface>> CreateRtpTransport( |
| 47 const RtcpParameters& rtcp_parameters, | 47 const RtpTransportParameters& parameters, |
| 48 PacketTransportInterface* rtp, | 48 PacketTransportInterface* rtp, |
| 49 PacketTransportInterface* rtcp, | 49 PacketTransportInterface* rtcp, |
| 50 RtpTransportControllerInterface* transport_controller) override; | 50 RtpTransportControllerInterface* transport_controller) override; |
| 51 | 51 |
| 52 RTCErrorOr<std::unique_ptr<SrtpTransportInterface>> CreateSrtpTransport( | 52 RTCErrorOr<std::unique_ptr<SrtpTransportInterface>> CreateSrtpTransport( |
| 53 const RtcpParameters& rtcp_parameters, | 53 const RtpTransportParameters& parameters, |
| 54 PacketTransportInterface* rtp, | 54 PacketTransportInterface* rtp, |
| 55 PacketTransportInterface* rtcp, | 55 PacketTransportInterface* rtcp, |
| 56 RtpTransportControllerInterface* transport_controller) override; | 56 RtpTransportControllerInterface* transport_controller) override; |
| 57 | 57 |
| 58 RtpCapabilities GetRtpSenderCapabilities( | 58 RtpCapabilities GetRtpSenderCapabilities( |
| 59 cricket::MediaType kind) const override; | 59 cricket::MediaType kind) const override; |
| 60 | 60 |
| 61 RTCErrorOr<std::unique_ptr<OrtcRtpSenderInterface>> CreateRtpSender( | 61 RTCErrorOr<std::unique_ptr<OrtcRtpSenderInterface>> CreateRtpSender( |
| 62 rtc::scoped_refptr<MediaStreamTrackInterface> track, | 62 rtc::scoped_refptr<MediaStreamTrackInterface> track, |
| 63 RtpTransportInterface* transport) override; | 63 RtpTransportInterface* transport) override; |
| (...skipping 32 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 96 rtc::Thread* signaling_thread() { return signaling_thread_; } | 96 rtc::Thread* signaling_thread() { return signaling_thread_; } |
| 97 | 97 |
| 98 private: | 98 private: |
| 99 // Should only be called by OrtcFactoryInterface::Create. | 99 // Should only be called by OrtcFactoryInterface::Create. |
| 100 OrtcFactory(rtc::Thread* network_thread, | 100 OrtcFactory(rtc::Thread* network_thread, |
| 101 rtc::Thread* signaling_thread, | 101 rtc::Thread* signaling_thread, |
| 102 rtc::NetworkManager* network_manager, | 102 rtc::NetworkManager* network_manager, |
| 103 rtc::PacketSocketFactory* socket_factory, | 103 rtc::PacketSocketFactory* socket_factory, |
| 104 AudioDeviceModule* adm); | 104 AudioDeviceModule* adm); |
| 105 | 105 |
| 106 RTCErrorOr<std::unique_ptr<RtpTransportControllerInterface>> |
| 107 CreateRtpTransportController(const RtpTransportParameters& parameters); |
| 108 |
| 106 // Thread::Invoke doesn't support move-only arguments, so we need to remove | 109 // Thread::Invoke doesn't support move-only arguments, so we need to remove |
| 107 // the unique_ptr wrapper from media_engine. TODO(deadbeef): Fix this. | 110 // the unique_ptr wrapper from media_engine. TODO(deadbeef): Fix this. |
| 108 static RTCErrorOr<std::unique_ptr<OrtcFactoryInterface>> Create_s( | 111 static RTCErrorOr<std::unique_ptr<OrtcFactoryInterface>> Create_s( |
| 109 rtc::Thread* network_thread, | 112 rtc::Thread* network_thread, |
| 110 rtc::Thread* signaling_thread, | 113 rtc::Thread* signaling_thread, |
| 111 rtc::NetworkManager* network_manager, | 114 rtc::NetworkManager* network_manager, |
| 112 rtc::PacketSocketFactory* socket_factory, | 115 rtc::PacketSocketFactory* socket_factory, |
| 113 AudioDeviceModule* adm, | 116 AudioDeviceModule* adm, |
| 114 cricket::MediaEngineInterface* media_engine); | 117 cricket::MediaEngineInterface* media_engine); |
| 115 | 118 |
| (...skipping 26 matching lines...) Expand all Loading... |
| 142 std::string default_cname_; | 145 std::string default_cname_; |
| 143 | 146 |
| 144 friend class OrtcFactoryInterface; | 147 friend class OrtcFactoryInterface; |
| 145 | 148 |
| 146 RTC_DISALLOW_COPY_AND_ASSIGN(OrtcFactory); | 149 RTC_DISALLOW_COPY_AND_ASSIGN(OrtcFactory); |
| 147 }; | 150 }; |
| 148 | 151 |
| 149 } // namespace webrtc | 152 } // namespace webrtc |
| 150 | 153 |
| 151 #endif // WEBRTC_ORTC_ORTCFACTORY_H_ | 154 #endif // WEBRTC_ORTC_ORTCFACTORY_H_ |
| OLD | NEW |