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 | |
Markus Handell | a1b8201 | 2021-05-26 18:56:30 +0200 | [diff] [blame] | 11 | #ifndef PC_PEER_CONNECTION_FACTORY_PROXY_H_ |
| 12 | #define PC_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" |
Markus Handell | a1b8201 | 2021-05-26 18:56:30 +0200 | [diff] [blame] | 19 | #include "pc/proxy.h" |
perkj@webrtc.org | 81134d0 | 2015-01-12 08:30:16 +0000 | [diff] [blame] | 20 | |
| 21 | namespace webrtc { |
| 22 | |
Markus Handell | a1b8201 | 2021-05-26 18:56:30 +0200 | [diff] [blame] | 23 | // TODO(deadbeef): Move this to .cc file. What threads methods are called on is |
| 24 | // an implementation detail. |
Tomas Gunnarsson | 95d2f47 | 2021-04-01 19:14:54 +0200 | [diff] [blame] | 25 | BEGIN_PROXY_MAP(PeerConnectionFactory) |
Mirko Bonadei | 9d9b8de | 2021-02-26 09:51:26 +0100 | [diff] [blame] | 26 | PROXY_PRIMARY_THREAD_DESTRUCTOR() |
Yves Gerey | 665174f | 2018-06-19 15:03:05 +0200 | [diff] [blame] | 27 | PROXY_METHOD1(void, SetOptions, const Options&) |
Harald Alvestrand | faaaa87 | 2020-11-27 11:30:21 +0000 | [diff] [blame] | 28 | PROXY_METHOD2(RTCErrorOr<rtc::scoped_refptr<PeerConnectionInterface>>, |
| 29 | CreatePeerConnectionOrError, |
| 30 | const PeerConnectionInterface::RTCConfiguration&, |
| 31 | PeerConnectionDependencies) |
Florent Castelli | 72b751a | 2018-06-28 14:09:33 +0200 | [diff] [blame] | 32 | PROXY_CONSTMETHOD1(webrtc::RtpCapabilities, |
| 33 | GetRtpSenderCapabilities, |
Nico Weber | 22f9925 | 2019-02-20 10:13:16 -0500 | [diff] [blame] | 34 | cricket::MediaType) |
Florent Castelli | 72b751a | 2018-06-28 14:09:33 +0200 | [diff] [blame] | 35 | PROXY_CONSTMETHOD1(webrtc::RtpCapabilities, |
| 36 | GetRtpReceiverCapabilities, |
Nico Weber | 22f9925 | 2019-02-20 10:13:16 -0500 | [diff] [blame] | 37 | cricket::MediaType) |
Yves Gerey | 665174f | 2018-06-19 15:03:05 +0200 | [diff] [blame] | 38 | PROXY_METHOD1(rtc::scoped_refptr<MediaStreamInterface>, |
| 39 | CreateLocalMediaStream, |
| 40 | const std::string&) |
| 41 | PROXY_METHOD1(rtc::scoped_refptr<AudioSourceInterface>, |
| 42 | CreateAudioSource, |
| 43 | const cricket::AudioOptions&) |
Yves Gerey | 665174f | 2018-06-19 15:03:05 +0200 | [diff] [blame] | 44 | PROXY_METHOD2(rtc::scoped_refptr<VideoTrackInterface>, |
| 45 | CreateVideoTrack, |
| 46 | const std::string&, |
| 47 | VideoTrackSourceInterface*) |
| 48 | PROXY_METHOD2(rtc::scoped_refptr<AudioTrackInterface>, |
| 49 | CreateAudioTrack, |
| 50 | const std::string&, |
| 51 | AudioSourceInterface*) |
Tomas Gunnarsson | 95d2f47 | 2021-04-01 19:14:54 +0200 | [diff] [blame] | 52 | PROXY_SECONDARY_METHOD2(bool, StartAecDump, FILE*, int64_t) |
| 53 | PROXY_SECONDARY_METHOD0(void, StopAecDump) |
Markus Handell | 3d46d0b | 2021-05-27 21:42:57 +0200 | [diff] [blame] | 54 | END_PROXY_MAP(PeerConnectionFactory) |
perkj@webrtc.org | 81134d0 | 2015-01-12 08:30:16 +0000 | [diff] [blame] | 55 | |
| 56 | } // namespace webrtc |
| 57 | |
Markus Handell | a1b8201 | 2021-05-26 18:56:30 +0200 | [diff] [blame] | 58 | #endif // PC_PEER_CONNECTION_FACTORY_PROXY_H_ |