Chromium Code Reviews| OLD | NEW |
|---|---|
| (Empty) | |
| 1 /* | |
| 2 * Copyright 2017 The WebRTC project authors. All Rights Reserved. | |
| 3 * | |
| 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 | |
| 6 * tree. An additional intellectual property rights grant can be found | |
| 7 * in the file PATENTS. All contributing project authors may | |
| 8 * be found in the AUTHORS file in the root of the source tree. | |
| 9 */ | |
| 10 | |
| 11 #include "webrtc/api/peerconnectioninterface.h" | |
| 12 #include "webrtc/base/bind.h" | |
| 13 #include "webrtc/base/scoped_ref_ptr.h" | |
| 14 #include "webrtc/base/thread.h" | |
| 15 #include "webrtc/call/callfactoryinterface.h" | |
| 16 // Adding 'nogncheck' to disable the gn include headers check. | |
| 17 // We don't want this null implementation target depend on audio and video | |
| 18 // related targets | |
| 19 #include "webrtc/media/engine/webrtcmediaengine.h" // nogncheck | |
| 20 | |
| 21 namespace webrtc { | |
| 22 | |
| 23 // This implementation is used for building WebRTC without audio and video | |
| 24 // support. | |
|
Taylor Brandstetter
2017/06/16 22:19:08
It's odd that this has an implementation of a Crea
Zhi Huang
2017/06/17 01:46:43
Instead of moving entire nativeCreatePeerConnectio
Taylor Brandstetter
2017/06/17 04:41:40
That makes sense; it's still the same general idea
| |
| 25 rtc::scoped_refptr<PeerConnectionFactoryInterface> CreatePeerConnectionFactory( | |
| 26 rtc::Thread* network_thread, | |
| 27 rtc::Thread* worker_thread, | |
| 28 rtc::Thread* signaling_thread, | |
| 29 AudioDeviceModule* default_adm, | |
| 30 cricket::WebRtcVideoEncoderFactory* encoder_factory, | |
| 31 cricket::WebRtcVideoDecoderFactory* decoder_factory) { | |
| 32 return CreateModularPeerConnectionFactory( | |
| 33 network_thread, worker_thread, signaling_thread, default_adm, | |
| 34 nullptr /*audio_encoder_factory*/, nullptr /*audio_decoder_factory*/, | |
| 35 encoder_factory, decoder_factory, nullptr /*audio_mixer*/, | |
| 36 std::unique_ptr<cricket::MediaEngineInterface>(), | |
| 37 std::unique_ptr<CallFactoryInterface>(), | |
| 38 std::unique_ptr<RtcEventLogFactoryInterface>()); | |
| 39 } | |
| 40 | |
| 41 } // namespace webrtc | |
| OLD | NEW |