blob: 1f37034e09e077098b3514ba202e463e86694099 [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()
28// Use the overloads of CreateVideoSource that take raw VideoCapturer
29// pointers from PeerConnectionFactoryInterface.
30// TODO(deadbeef): Remove this using statement once those overloads are
31// removed.
32using PeerConnectionFactoryInterface::CreateVideoSource;
33PROXY_METHOD1(void, SetOptions, const Options&)
Yves Gerey665174f2018-06-19 13:03:0534PROXY_METHOD4(rtc::scoped_refptr<PeerConnectionInterface>,
35 CreatePeerConnection,
36 const PeerConnectionInterface::RTCConfiguration&,
37 std::unique_ptr<cricket::PortAllocator>,
38 std::unique_ptr<rtc::RTCCertificateGeneratorInterface>,
39 PeerConnectionObserver*);
40PROXY_METHOD2(rtc::scoped_refptr<PeerConnectionInterface>,
41 CreatePeerConnection,
42 const PeerConnectionInterface::RTCConfiguration&,
43 PeerConnectionDependencies);
Florent Castelli72b751a2018-06-28 12:09:3344PROXY_CONSTMETHOD1(webrtc::RtpCapabilities,
45 GetRtpSenderCapabilities,
46 cricket::MediaType);
47PROXY_CONSTMETHOD1(webrtc::RtpCapabilities,
48 GetRtpReceiverCapabilities,
49 cricket::MediaType);
Yves Gerey665174f2018-06-19 13:03:0550PROXY_METHOD1(rtc::scoped_refptr<MediaStreamInterface>,
51 CreateLocalMediaStream,
52 const std::string&)
53PROXY_METHOD1(rtc::scoped_refptr<AudioSourceInterface>,
54 CreateAudioSource,
55 const cricket::AudioOptions&)
56PROXY_METHOD2(rtc::scoped_refptr<VideoTrackSourceInterface>,
57 CreateVideoSource,
58 std::unique_ptr<cricket::VideoCapturer>,
59 const MediaConstraintsInterface*)
60PROXY_METHOD1(rtc::scoped_refptr<VideoTrackSourceInterface>,
61 CreateVideoSource,
62 std::unique_ptr<cricket::VideoCapturer>)
63PROXY_METHOD2(rtc::scoped_refptr<VideoTrackInterface>,
64 CreateVideoTrack,
65 const std::string&,
66 VideoTrackSourceInterface*)
67PROXY_METHOD2(rtc::scoped_refptr<AudioTrackInterface>,
68 CreateAudioTrack,
69 const std::string&,
70 AudioSourceInterface*)
71PROXY_METHOD2(bool, StartAecDump, rtc::PlatformFile, int64_t)
72PROXY_METHOD0(void, StopAecDump)
deadbeefd99a2002017-01-18 16:55:2373END_PROXY_MAP()
perkj@webrtc.org81134d02015-01-12 08:30:1674
75} // namespace webrtc
76
Steve Anton10542f22019-01-11 17:11:0077#endif // API_PEER_CONNECTION_FACTORY_PROXY_H_