henrike@webrtc.org | 28e2075 | 2013-07-10 00:45:36 | [diff] [blame] | 1 | /* |
kjellander | b24317b | 2016-02-10 15:54:43 | [diff] [blame] | 2 | * Copyright 2012 The WebRTC project authors. All Rights Reserved. |
henrike@webrtc.org | 28e2075 | 2013-07-10 00:45:36 | [diff] [blame] | 3 | * |
kjellander | b24317b | 2016-02-10 15:54:43 | [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. |
henrike@webrtc.org | 28e2075 | 2013-07-10 00:45:36 | [diff] [blame] | 9 | */ |
| 10 | |
Henrik Kjellander | 15583c1 | 2016-02-10 09:53:12 | [diff] [blame] | 11 | #ifndef WEBRTC_API_PEERCONNECTIONPROXY_H_ |
| 12 | #define WEBRTC_API_PEERCONNECTIONPROXY_H_ |
henrike@webrtc.org | 28e2075 | 2013-07-10 00:45:36 | [diff] [blame] | 13 | |
Henrik Kjellander | 15583c1 | 2016-02-10 09:53:12 | [diff] [blame] | 14 | #include "webrtc/api/peerconnectioninterface.h" |
| 15 | #include "webrtc/api/proxy.h" |
henrike@webrtc.org | 28e2075 | 2013-07-10 00:45:36 | [diff] [blame] | 16 | |
| 17 | namespace webrtc { |
| 18 | |
| 19 | // Define proxy for PeerConnectionInterface. |
nisse | 72c8d2b | 2016-04-15 10:49:07 | [diff] [blame] | 20 | BEGIN_SIGNALING_PROXY_MAP(PeerConnection) |
buildbot@webrtc.org | d4e598d | 2014-07-29 17:36:52 | [diff] [blame] | 21 | PROXY_METHOD0(rtc::scoped_refptr<StreamCollectionInterface>, |
henrike@webrtc.org | 28e2075 | 2013-07-10 00:45:36 | [diff] [blame] | 22 | local_streams) |
buildbot@webrtc.org | d4e598d | 2014-07-29 17:36:52 | [diff] [blame] | 23 | PROXY_METHOD0(rtc::scoped_refptr<StreamCollectionInterface>, |
henrike@webrtc.org | 28e2075 | 2013-07-10 00:45:36 | [diff] [blame] | 24 | remote_streams) |
perkj@webrtc.org | c2dd5ee | 2014-11-04 11:31:29 | [diff] [blame] | 25 | PROXY_METHOD1(bool, AddStream, MediaStreamInterface*) |
henrike@webrtc.org | 28e2075 | 2013-07-10 00:45:36 | [diff] [blame] | 26 | PROXY_METHOD1(void, RemoveStream, MediaStreamInterface*) |
deadbeef | e1f9d83 | 2016-01-14 23:35:42 | [diff] [blame] | 27 | PROXY_METHOD2(rtc::scoped_refptr<RtpSenderInterface>, |
| 28 | AddTrack, |
| 29 | MediaStreamTrackInterface*, |
| 30 | std::vector<MediaStreamInterface*>) |
| 31 | PROXY_METHOD1(bool, RemoveTrack, RtpSenderInterface*) |
buildbot@webrtc.org | d4e598d | 2014-07-29 17:36:52 | [diff] [blame] | 32 | PROXY_METHOD1(rtc::scoped_refptr<DtmfSenderInterface>, |
henrike@webrtc.org | 28e2075 | 2013-07-10 00:45:36 | [diff] [blame] | 33 | CreateDtmfSender, AudioTrackInterface*) |
deadbeef | bd7d8f7 | 2015-12-19 00:58:44 | [diff] [blame] | 34 | PROXY_METHOD2(rtc::scoped_refptr<RtpSenderInterface>, |
deadbeef | fac0655 | 2015-11-25 19:26:01 | [diff] [blame] | 35 | CreateSender, |
deadbeef | bd7d8f7 | 2015-12-19 00:58:44 | [diff] [blame] | 36 | const std::string&, |
deadbeef | fac0655 | 2015-11-25 19:26:01 | [diff] [blame] | 37 | const std::string&) |
deadbeef | 70ab1a1 | 2015-09-28 23:53:55 | [diff] [blame] | 38 | PROXY_CONSTMETHOD0(std::vector<rtc::scoped_refptr<RtpSenderInterface>>, |
| 39 | GetSenders) |
| 40 | PROXY_CONSTMETHOD0(std::vector<rtc::scoped_refptr<RtpReceiverInterface>>, |
| 41 | GetReceivers) |
wu@webrtc.org | b9a088b | 2014-02-13 23:18:49 | [diff] [blame] | 42 | PROXY_METHOD3(bool, GetStats, StatsObserver*, |
| 43 | MediaStreamTrackInterface*, |
| 44 | StatsOutputLevel) |
hbos | 74e1a4f | 2016-09-16 06:33:01 | [diff] [blame] | 45 | PROXY_METHOD1(void, GetStats, RTCStatsCollectorCallback*) |
buildbot@webrtc.org | d4e598d | 2014-07-29 17:36:52 | [diff] [blame] | 46 | PROXY_METHOD2(rtc::scoped_refptr<DataChannelInterface>, |
henrike@webrtc.org | 28e2075 | 2013-07-10 00:45:36 | [diff] [blame] | 47 | CreateDataChannel, const std::string&, const DataChannelInit*) |
| 48 | PROXY_CONSTMETHOD0(const SessionDescriptionInterface*, local_description) |
| 49 | PROXY_CONSTMETHOD0(const SessionDescriptionInterface*, remote_description) |
| 50 | PROXY_METHOD2(void, CreateOffer, CreateSessionDescriptionObserver*, |
| 51 | const MediaConstraintsInterface*) |
| 52 | PROXY_METHOD2(void, CreateAnswer, CreateSessionDescriptionObserver*, |
| 53 | const MediaConstraintsInterface*) |
hta | a2a49d9 | 2016-03-04 10:51:39 | [diff] [blame] | 54 | PROXY_METHOD2(void, |
| 55 | CreateOffer, |
| 56 | CreateSessionDescriptionObserver*, |
| 57 | const RTCOfferAnswerOptions&) |
| 58 | PROXY_METHOD2(void, |
| 59 | CreateAnswer, |
| 60 | CreateSessionDescriptionObserver*, |
| 61 | const RTCOfferAnswerOptions&) |
henrike@webrtc.org | 28e2075 | 2013-07-10 00:45:36 | [diff] [blame] | 62 | PROXY_METHOD2(void, SetLocalDescription, SetSessionDescriptionObserver*, |
| 63 | SessionDescriptionInterface*) |
| 64 | PROXY_METHOD2(void, SetRemoteDescription, SetSessionDescriptionObserver*, |
| 65 | SessionDescriptionInterface*) |
deadbeef | a67696b | 2015-09-29 18:56:26 | [diff] [blame] | 66 | PROXY_METHOD1(bool, |
| 67 | SetConfiguration, |
| 68 | const PeerConnectionInterface::RTCConfiguration&); |
henrike@webrtc.org | 28e2075 | 2013-07-10 00:45:36 | [diff] [blame] | 69 | PROXY_METHOD1(bool, AddIceCandidate, const IceCandidateInterface*) |
Honghai Zhang | 7fb69db | 2016-03-14 18:59:18 | [diff] [blame] | 70 | PROXY_METHOD1(bool, |
| 71 | RemoveIceCandidates, |
| 72 | const std::vector<cricket::Candidate>&); |
buildbot@webrtc.org | 1567b8c | 2014-05-08 19:54:16 | [diff] [blame] | 73 | PROXY_METHOD1(void, RegisterUMAObserver, UMAObserver*) |
henrike@webrtc.org | 28e2075 | 2013-07-10 00:45:36 | [diff] [blame] | 74 | PROXY_METHOD0(SignalingState, signaling_state) |
perkj | 68343a8 | 2016-08-30 06:51:13 | [diff] [blame] | 75 | PROXY_METHOD0(IceState, ice_state) |
henrike@webrtc.org | 28e2075 | 2013-07-10 00:45:36 | [diff] [blame] | 76 | PROXY_METHOD0(IceConnectionState, ice_connection_state) |
| 77 | PROXY_METHOD0(IceGatheringState, ice_gathering_state) |
ivoc | 14d5dbe | 2016-07-04 14:06:55 | [diff] [blame] | 78 | PROXY_METHOD2(bool, StartRtcEventLog, rtc::PlatformFile, int64_t) |
| 79 | PROXY_METHOD0(void, StopRtcEventLog) |
henrike@webrtc.org | 28e2075 | 2013-07-10 00:45:36 | [diff] [blame] | 80 | PROXY_METHOD0(void, Close) |
nisse | 72c8d2b | 2016-04-15 10:49:07 | [diff] [blame] | 81 | END_SIGNALING_PROXY() |
henrike@webrtc.org | 28e2075 | 2013-07-10 00:45:36 | [diff] [blame] | 82 | |
| 83 | } // namespace webrtc |
| 84 | |
Henrik Kjellander | 15583c1 | 2016-02-10 09:53:12 | [diff] [blame] | 85 | #endif // WEBRTC_API_PEERCONNECTIONPROXY_H_ |