blob: 2f8fe2c0bf90a20d1d42f72695d04c96d6450f0b [file] [log] [blame]
Markus Handelle93fe6c2021-05-20 20:46:311/*
2 * Copyright 2021 The WebRTC project authors. All Rights Reserved.
3 *
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.
9 */
10
11#ifndef PC_RTP_SENDER_PROXY_H_
12#define PC_RTP_SENDER_PROXY_H_
13
14#include <string>
15#include <vector>
16
Markus Handelle93fe6c2021-05-20 20:46:3117#include "api/rtp_sender_interface.h"
Markus Handella1b82012021-05-26 16:56:3018#include "pc/proxy.h"
Markus Handelle93fe6c2021-05-20 20:46:3119
20namespace webrtc {
21
22// Define proxy for RtpSenderInterface.
23// TODO(deadbeef): Move this to .cc file. What threads methods are called on is
24// an implementation detail.
25BEGIN_PRIMARY_PROXY_MAP(RtpSender)
26PROXY_PRIMARY_THREAD_DESTRUCTOR()
27PROXY_METHOD1(bool, SetTrack, MediaStreamTrackInterface*)
28PROXY_CONSTMETHOD0(rtc::scoped_refptr<MediaStreamTrackInterface>, track)
29PROXY_CONSTMETHOD0(rtc::scoped_refptr<DtlsTransportInterface>, dtls_transport)
30PROXY_CONSTMETHOD0(uint32_t, ssrc)
31BYPASS_PROXY_CONSTMETHOD0(cricket::MediaType, media_type)
32BYPASS_PROXY_CONSTMETHOD0(std::string, id)
33PROXY_CONSTMETHOD0(std::vector<std::string>, stream_ids)
34PROXY_CONSTMETHOD0(std::vector<RtpEncodingParameters>, init_send_encodings)
35PROXY_CONSTMETHOD0(RtpParameters, GetParameters)
36PROXY_METHOD1(RTCError, SetParameters, const RtpParameters&)
37PROXY_CONSTMETHOD0(rtc::scoped_refptr<DtmfSenderInterface>, GetDtmfSender)
38PROXY_METHOD1(void,
39 SetFrameEncryptor,
40 rtc::scoped_refptr<FrameEncryptorInterface>)
41PROXY_CONSTMETHOD0(rtc::scoped_refptr<FrameEncryptorInterface>,
42 GetFrameEncryptor)
43PROXY_METHOD1(void, SetStreams, const std::vector<std::string>&)
44PROXY_METHOD1(void,
45 SetEncoderToPacketizerFrameTransformer,
46 rtc::scoped_refptr<FrameTransformerInterface>)
Markus Handell3d46d0b2021-05-27 19:42:5747END_PROXY_MAP(RtpSender)
Markus Handelle93fe6c2021-05-20 20:46:3148
49} // namespace webrtc
50
51#endif // PC_RTP_SENDER_PROXY_H_