2015-01-12 08:30:16 +00:00
|
|
|
/*
|
2016-02-10 07:54:43 -08:00
|
|
|
* Copyright 2014 The WebRTC project authors. All Rights Reserved.
|
2015-01-12 08:30:16 +00:00
|
|
|
*
|
2016-02-10 07:54:43 -08:00
|
|
|
* Use of this source code is governed by a BSD-style license
|
|
|
|
|
* that can be found in the LICENSE file in the root of the source
|
|
|
|
|
* tree. An additional intellectual property rights grant can be found
|
|
|
|
|
* in the file PATENTS. All contributing project authors may
|
|
|
|
|
* be found in the AUTHORS file in the root of the source tree.
|
2015-01-12 08:30:16 +00:00
|
|
|
*/
|
2015-01-20 21:36:13 +00:00
|
|
|
|
2021-05-26 18:56:30 +02:00
|
|
|
#ifndef PC_PEER_CONNECTION_FACTORY_PROXY_H_
|
|
|
|
|
#define PC_PEER_CONNECTION_FACTORY_PROXY_H_
|
2015-01-12 08:30:16 +00:00
|
|
|
|
2016-04-27 06:47:29 -07:00
|
|
|
#include <memory>
|
2015-01-12 08:30:16 +00:00
|
|
|
#include <string>
|
2015-12-17 03:04:15 -08:00
|
|
|
#include <utility>
|
2015-01-12 08:30:16 +00:00
|
|
|
|
2019-01-11 09:11:00 -08:00
|
|
|
#include "api/peer_connection_interface.h"
|
2021-05-26 18:56:30 +02:00
|
|
|
#include "pc/proxy.h"
|
2015-01-12 08:30:16 +00:00
|
|
|
|
|
|
|
|
namespace webrtc {
|
|
|
|
|
|
2021-05-26 18:56:30 +02:00
|
|
|
// TODO(deadbeef): Move this to .cc file. What threads methods are called on is
|
|
|
|
|
// an implementation detail.
|
2021-04-01 19:14:54 +02:00
|
|
|
BEGIN_PROXY_MAP(PeerConnectionFactory)
|
2021-02-26 09:51:26 +01:00
|
|
|
PROXY_PRIMARY_THREAD_DESTRUCTOR()
|
2015-01-12 08:30:16 +00:00
|
|
|
PROXY_METHOD1(void, SetOptions, const Options&)
|
2020-11-27 11:30:21 +00:00
|
|
|
PROXY_METHOD2(RTCErrorOr<rtc::scoped_refptr<PeerConnectionInterface>>,
|
|
|
|
|
CreatePeerConnectionOrError,
|
|
|
|
|
const PeerConnectionInterface::RTCConfiguration&,
|
|
|
|
|
PeerConnectionDependencies)
|
2018-06-28 14:09:33 +02:00
|
|
|
PROXY_CONSTMETHOD1(webrtc::RtpCapabilities,
|
|
|
|
|
GetRtpSenderCapabilities,
|
2019-02-20 10:13:16 -05:00
|
|
|
cricket::MediaType)
|
2018-06-28 14:09:33 +02:00
|
|
|
PROXY_CONSTMETHOD1(webrtc::RtpCapabilities,
|
|
|
|
|
GetRtpReceiverCapabilities,
|
2019-02-20 10:13:16 -05:00
|
|
|
cricket::MediaType)
|
2015-01-12 08:30:16 +00:00
|
|
|
PROXY_METHOD1(rtc::scoped_refptr<MediaStreamInterface>,
|
|
|
|
|
CreateLocalMediaStream,
|
|
|
|
|
const std::string&)
|
2016-03-04 02:51:39 -08:00
|
|
|
PROXY_METHOD1(rtc::scoped_refptr<AudioSourceInterface>,
|
|
|
|
|
CreateAudioSource,
|
|
|
|
|
const cricket::AudioOptions&)
|
2015-01-12 08:30:16 +00:00
|
|
|
PROXY_METHOD2(rtc::scoped_refptr<VideoTrackInterface>,
|
2016-03-08 01:27:48 +01:00
|
|
|
CreateVideoTrack,
|
|
|
|
|
const std::string&,
|
|
|
|
|
VideoTrackSourceInterface*)
|
2015-01-12 08:30:16 +00:00
|
|
|
PROXY_METHOD2(rtc::scoped_refptr<AudioTrackInterface>,
|
|
|
|
|
CreateAudioTrack,
|
|
|
|
|
const std::string&,
|
|
|
|
|
AudioSourceInterface*)
|
2021-04-01 19:14:54 +02:00
|
|
|
PROXY_SECONDARY_METHOD2(bool, StartAecDump, FILE*, int64_t)
|
|
|
|
|
PROXY_SECONDARY_METHOD0(void, StopAecDump)
|
2021-05-27 21:42:57 +02:00
|
|
|
END_PROXY_MAP(PeerConnectionFactory)
|
2015-01-12 08:30:16 +00:00
|
|
|
|
|
|
|
|
} // namespace webrtc
|
|
|
|
|
|
2021-05-26 18:56:30 +02:00
|
|
|
#endif // PC_PEER_CONNECTION_FACTORY_PROXY_H_
|