perkj@webrtc.org | 81134d0 | 2015-01-12 08:30:16 +0000 | [diff] [blame] | 1 | /* |
kjellander | b24317b | 2016-02-10 07:54:43 -0800 | [diff] [blame] | 2 | * Copyright 2014 The WebRTC project authors. All Rights Reserved. |
perkj@webrtc.org | 81134d0 | 2015-01-12 08:30:16 +0000 | [diff] [blame] | 3 | * |
kjellander | b24317b | 2016-02-10 07:54:43 -0800 | [diff] [blame] | 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. |
perkj@webrtc.org | 81134d0 | 2015-01-12 08:30:16 +0000 | [diff] [blame] | 9 | */ |
jlmiller@webrtc.org | 5f93d0a | 2015-01-20 21:36:13 +0000 | [diff] [blame] | 10 | |
Steve Anton | 10542f2 | 2019-01-11 09:11:00 -0800 | [diff] [blame] | 11 | #ifndef API_PEER_CONNECTION_FACTORY_PROXY_H_ |
| 12 | #define API_PEER_CONNECTION_FACTORY_PROXY_H_ |
perkj@webrtc.org | 81134d0 | 2015-01-12 08:30:16 +0000 | [diff] [blame] | 13 | |
kwiberg | d1fe281 | 2016-04-27 06:47:29 -0700 | [diff] [blame] | 14 | #include <memory> |
perkj@webrtc.org | 81134d0 | 2015-01-12 08:30:16 +0000 | [diff] [blame] | 15 | #include <string> |
kwiberg | 0eb15ed | 2015-12-17 03:04:15 -0800 | [diff] [blame] | 16 | #include <utility> |
perkj@webrtc.org | 81134d0 | 2015-01-12 08:30:16 +0000 | [diff] [blame] | 17 | |
Steve Anton | 10542f2 | 2019-01-11 09:11:00 -0800 | [diff] [blame] | 18 | #include "api/peer_connection_interface.h" |
Mirko Bonadei | 92ea95e | 2017-09-15 06:47:31 +0200 | [diff] [blame] | 19 | #include "api/proxy.h" |
perkj@webrtc.org | 81134d0 | 2015-01-12 08:30:16 +0000 | [diff] [blame] | 20 | |
| 21 | namespace webrtc { |
| 22 | |
deadbeef | b10f32f | 2017-02-08 01:38:21 -0800 | [diff] [blame] | 23 | // TODO(deadbeef): Move this to .cc file and out of api/. What threads methods |
| 24 | // are called on is an implementation detail. |
nisse | 72c8d2b | 2016-04-15 03:49:07 -0700 | [diff] [blame] | 25 | BEGIN_SIGNALING_PROXY_MAP(PeerConnectionFactory) |
Yves Gerey | 665174f | 2018-06-19 15:03:05 +0200 | [diff] [blame] | 26 | PROXY_SIGNALING_THREAD_DESTRUCTOR() |
Yves Gerey | 665174f | 2018-06-19 15:03:05 +0200 | [diff] [blame] | 27 | PROXY_METHOD1(void, SetOptions, const Options&) |
Yves Gerey | 665174f | 2018-06-19 15:03:05 +0200 | [diff] [blame] | 28 | PROXY_METHOD4(rtc::scoped_refptr<PeerConnectionInterface>, |
| 29 | CreatePeerConnection, |
| 30 | const PeerConnectionInterface::RTCConfiguration&, |
| 31 | std::unique_ptr<cricket::PortAllocator>, |
| 32 | std::unique_ptr<rtc::RTCCertificateGeneratorInterface>, |
Nico Weber | 22f9925 | 2019-02-20 10:13:16 -0500 | [diff] [blame] | 33 | PeerConnectionObserver*) |
Yves Gerey | 665174f | 2018-06-19 15:03:05 +0200 | [diff] [blame] | 34 | PROXY_METHOD2(rtc::scoped_refptr<PeerConnectionInterface>, |
| 35 | CreatePeerConnection, |
| 36 | const PeerConnectionInterface::RTCConfiguration&, |
Nico Weber | 22f9925 | 2019-02-20 10:13:16 -0500 | [diff] [blame] | 37 | PeerConnectionDependencies) |
Harald Alvestrand | faaaa87 | 2020-11-27 11:30:21 +0000 | [diff] [blame] | 38 | PROXY_METHOD2(RTCErrorOr<rtc::scoped_refptr<PeerConnectionInterface>>, |
| 39 | CreatePeerConnectionOrError, |
| 40 | const PeerConnectionInterface::RTCConfiguration&, |
| 41 | PeerConnectionDependencies) |
Florent Castelli | 72b751a | 2018-06-28 14:09:33 +0200 | [diff] [blame] | 42 | PROXY_CONSTMETHOD1(webrtc::RtpCapabilities, |
| 43 | GetRtpSenderCapabilities, |
Nico Weber | 22f9925 | 2019-02-20 10:13:16 -0500 | [diff] [blame] | 44 | cricket::MediaType) |
Florent Castelli | 72b751a | 2018-06-28 14:09:33 +0200 | [diff] [blame] | 45 | PROXY_CONSTMETHOD1(webrtc::RtpCapabilities, |
| 46 | GetRtpReceiverCapabilities, |
Nico Weber | 22f9925 | 2019-02-20 10:13:16 -0500 | [diff] [blame] | 47 | cricket::MediaType) |
Yves Gerey | 665174f | 2018-06-19 15:03:05 +0200 | [diff] [blame] | 48 | PROXY_METHOD1(rtc::scoped_refptr<MediaStreamInterface>, |
| 49 | CreateLocalMediaStream, |
| 50 | const std::string&) |
| 51 | PROXY_METHOD1(rtc::scoped_refptr<AudioSourceInterface>, |
| 52 | CreateAudioSource, |
| 53 | const cricket::AudioOptions&) |
Yves Gerey | 665174f | 2018-06-19 15:03:05 +0200 | [diff] [blame] | 54 | PROXY_METHOD2(rtc::scoped_refptr<VideoTrackInterface>, |
| 55 | CreateVideoTrack, |
| 56 | const std::string&, |
| 57 | VideoTrackSourceInterface*) |
| 58 | PROXY_METHOD2(rtc::scoped_refptr<AudioTrackInterface>, |
| 59 | CreateAudioTrack, |
| 60 | const std::string&, |
| 61 | AudioSourceInterface*) |
Niels Möller | e8e4dc4 | 2019-06-11 14:04:16 +0200 | [diff] [blame] | 62 | PROXY_METHOD2(bool, StartAecDump, FILE*, int64_t) |
Yves Gerey | 665174f | 2018-06-19 15:03:05 +0200 | [diff] [blame] | 63 | PROXY_METHOD0(void, StopAecDump) |
deadbeef | d99a200 | 2017-01-18 08:55:23 -0800 | [diff] [blame] | 64 | END_PROXY_MAP() |
perkj@webrtc.org | 81134d0 | 2015-01-12 08:30:16 +0000 | [diff] [blame] | 65 | |
| 66 | } // namespace webrtc |
| 67 | |
Steve Anton | 10542f2 | 2019-01-11 09:11:00 -0800 | [diff] [blame] | 68 | #endif // API_PEER_CONNECTION_FACTORY_PROXY_H_ |