Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(238)

Side by Side Diff: webrtc/pc/nullaudiofactory.cc

Issue 2854123003: Build WebRTC with data channel only. (Closed)
Patch Set: Rebase. Created 3 years, 6 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
(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 // Adding 'nogncheck' to disable the gn include headers check.
12 // We don't want the null implementation to depend on the audio related targets.
13 #include "webrtc/api/audio/audio_mixer.h" // nogncheck
14 #include "webrtc/api/peerconnectioninterface.h"
15 #include "webrtc/base/scoped_ref_ptr.h"
16 #include "webrtc/base/thread.h"
17
18 namespace cricket {
19 class WebRtcVideoEncoderFactory;
20 class WebRtcVideoDecoderFactory;
21 } // namespace cricket
22
23 namespace webrtc {
24
25 rtc::scoped_refptr<PeerConnectionFactoryInterface>
26 CreatePeerConnectionFactory() {
27 return CreatePeerConnectionFactory(nullptr, nullptr);
28 }
29
30 rtc::scoped_refptr<PeerConnectionFactoryInterface>
31 CreatePeerConnectionFactoryWithAudioMixer(
32 rtc::Thread* network_thread,
33 rtc::Thread* worker_thread,
34 rtc::Thread* signaling_thread,
35 AudioDeviceModule* default_adm,
36 cricket::WebRtcVideoEncoderFactory* encoder_factory,
37 cricket::WebRtcVideoDecoderFactory* decoder_factory,
38 rtc::scoped_refptr<AudioMixer> audio_mixer) {
39 return CreatePeerConnectionFactoryWithAudioMixer(
40 network_thread, worker_thread, signaling_thread, default_adm, nullptr,
41 nullptr, encoder_factory, decoder_factory, audio_mixer);
42 }
43
44 } // namespace webrtc
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698