blob: e33fb457ae002e288aa1251cc17fac82f975d5aa [file] [log] [blame]
perkj@webrtc.org81134d02015-01-12 08:30:161/*
kjellanderb24317b2016-02-10 15:54:432 * Copyright 2014 The WebRTC project authors. All Rights Reserved.
perkj@webrtc.org81134d02015-01-12 08:30:163 *
kjellanderb24317b2016-02-10 15:54:434 * 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.
perkj@webrtc.org81134d02015-01-12 08:30:169 */
jlmiller@webrtc.org5f93d0a2015-01-20 21:36:1310
Steve Anton10542f22019-01-11 17:11:0011#ifndef API_PEER_CONNECTION_FACTORY_PROXY_H_
12#define API_PEER_CONNECTION_FACTORY_PROXY_H_
perkj@webrtc.org81134d02015-01-12 08:30:1613
kwibergd1fe2812016-04-27 13:47:2914#include <memory>
perkj@webrtc.org81134d02015-01-12 08:30:1615#include <string>
kwiberg0eb15ed2015-12-17 11:04:1516#include <utility>
perkj@webrtc.org81134d02015-01-12 08:30:1617
Steve Anton10542f22019-01-11 17:11:0018#include "api/peer_connection_interface.h"
Mirko Bonadei92ea95e2017-09-15 04:47:3119#include "api/proxy.h"
20#include "rtc_base/bind.h"
perkj@webrtc.org81134d02015-01-12 08:30:1621
22namespace webrtc {
23
deadbeefb10f32f2017-02-08 09:38:2124// TODO(deadbeef): Move this to .cc file and out of api/. What threads methods
25// are called on is an implementation detail.
nisse72c8d2b2016-04-15 10:49:0726BEGIN_SIGNALING_PROXY_MAP(PeerConnectionFactory)
Yves Gerey665174f2018-06-19 13:03:0527PROXY_SIGNALING_THREAD_DESTRUCTOR()
Yves Gerey665174f2018-06-19 13:03:0528PROXY_METHOD1(void, SetOptions, const Options&)
Yves Gerey665174f2018-06-19 13:03:0529PROXY_METHOD4(rtc::scoped_refptr<PeerConnectionInterface>,
30 CreatePeerConnection,
31 const PeerConnectionInterface::RTCConfiguration&,
32 std::unique_ptr<cricket::PortAllocator>,
33 std::unique_ptr<rtc::RTCCertificateGeneratorInterface>,
Nico Weber22f99252019-02-20 15:13:1634 PeerConnectionObserver*)
Yves Gerey665174f2018-06-19 13:03:0535PROXY_METHOD2(rtc::scoped_refptr<PeerConnectionInterface>,
36 CreatePeerConnection,
37 const PeerConnectionInterface::RTCConfiguration&,
Nico Weber22f99252019-02-20 15:13:1638 PeerConnectionDependencies)
Florent Castelli72b751a2018-06-28 12:09:3339PROXY_CONSTMETHOD1(webrtc::RtpCapabilities,
40 GetRtpSenderCapabilities,
Nico Weber22f99252019-02-20 15:13:1641 cricket::MediaType)
Florent Castelli72b751a2018-06-28 12:09:3342PROXY_CONSTMETHOD1(webrtc::RtpCapabilities,
43 GetRtpReceiverCapabilities,
Nico Weber22f99252019-02-20 15:13:1644 cricket::MediaType)
Yves Gerey665174f2018-06-19 13:03:0545PROXY_METHOD1(rtc::scoped_refptr<MediaStreamInterface>,
46 CreateLocalMediaStream,
47 const std::string&)
48PROXY_METHOD1(rtc::scoped_refptr<AudioSourceInterface>,
49 CreateAudioSource,
50 const cricket::AudioOptions&)
Yves Gerey665174f2018-06-19 13:03:0551PROXY_METHOD2(rtc::scoped_refptr<VideoTrackInterface>,
52 CreateVideoTrack,
53 const std::string&,
54 VideoTrackSourceInterface*)
55PROXY_METHOD2(rtc::scoped_refptr<AudioTrackInterface>,
56 CreateAudioTrack,
57 const std::string&,
58 AudioSourceInterface*)
Niels Möllere8e4dc42019-06-11 12:04:1659PROXY_METHOD2(bool, StartAecDump, FILE*, int64_t)
Yves Gerey665174f2018-06-19 13:03:0560PROXY_METHOD0(void, StopAecDump)
deadbeefd99a2002017-01-18 16:55:2361END_PROXY_MAP()
perkj@webrtc.org81134d02015-01-12 08:30:1662
63} // namespace webrtc
64
Steve Anton10542f22019-01-11 17:11:0065#endif // API_PEER_CONNECTION_FACTORY_PROXY_H_