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