OLD | NEW |
1 /* | 1 /* |
2 * Copyright 2012 The WebRTC project authors. All Rights Reserved. | 2 * Copyright 2012 The WebRTC project authors. All Rights Reserved. |
3 * | 3 * |
4 * Use of this source code is governed by a BSD-style license | 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 | 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 | 6 * tree. An additional intellectual property rights grant can be found |
7 * in the file PATENTS. All contributing project authors may | 7 * in the file PATENTS. All contributing project authors may |
8 * be found in the AUTHORS file in the root of the source tree. | 8 * be found in the AUTHORS file in the root of the source tree. |
9 */ | 9 */ |
10 | 10 |
11 #ifndef WEBRTC_API_PEERCONNECTIONPROXY_H_ | 11 #ifndef WEBRTC_API_PEERCONNECTIONPROXY_H_ |
12 #define WEBRTC_API_PEERCONNECTIONPROXY_H_ | 12 #define WEBRTC_API_PEERCONNECTIONPROXY_H_ |
13 | 13 |
14 #include "webrtc/api/peerconnectioninterface.h" | 14 #include "webrtc/api/peerconnectioninterface.h" |
15 #include "webrtc/api/proxy.h" | 15 #include "webrtc/api/proxy.h" |
16 | 16 |
17 namespace webrtc { | 17 namespace webrtc { |
18 | 18 |
19 // Define proxy for PeerConnectionInterface. | 19 // Define proxy for PeerConnectionInterface. |
20 BEGIN_PROXY_MAP(PeerConnection) | 20 BEGIN_SIGNALING_PROXY_MAP(PeerConnection) |
21 PROXY_METHOD0(rtc::scoped_refptr<StreamCollectionInterface>, | 21 PROXY_METHOD0(rtc::scoped_refptr<StreamCollectionInterface>, |
22 local_streams) | 22 local_streams) |
23 PROXY_METHOD0(rtc::scoped_refptr<StreamCollectionInterface>, | 23 PROXY_METHOD0(rtc::scoped_refptr<StreamCollectionInterface>, |
24 remote_streams) | 24 remote_streams) |
25 PROXY_METHOD1(bool, AddStream, MediaStreamInterface*) | 25 PROXY_METHOD1(bool, AddStream, MediaStreamInterface*) |
26 PROXY_METHOD1(void, RemoveStream, MediaStreamInterface*) | 26 PROXY_METHOD1(void, RemoveStream, MediaStreamInterface*) |
27 PROXY_METHOD2(rtc::scoped_refptr<RtpSenderInterface>, | 27 PROXY_METHOD2(rtc::scoped_refptr<RtpSenderInterface>, |
28 AddTrack, | 28 AddTrack, |
29 MediaStreamTrackInterface*, | 29 MediaStreamTrackInterface*, |
30 std::vector<MediaStreamInterface*>) | 30 std::vector<MediaStreamInterface*>) |
(...skipping 37 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
68 PROXY_METHOD1(bool, AddIceCandidate, const IceCandidateInterface*) | 68 PROXY_METHOD1(bool, AddIceCandidate, const IceCandidateInterface*) |
69 PROXY_METHOD1(bool, | 69 PROXY_METHOD1(bool, |
70 RemoveIceCandidates, | 70 RemoveIceCandidates, |
71 const std::vector<cricket::Candidate>&); | 71 const std::vector<cricket::Candidate>&); |
72 PROXY_METHOD1(void, RegisterUMAObserver, UMAObserver*) | 72 PROXY_METHOD1(void, RegisterUMAObserver, UMAObserver*) |
73 PROXY_METHOD0(SignalingState, signaling_state) | 73 PROXY_METHOD0(SignalingState, signaling_state) |
74 PROXY_METHOD0(IceState, ice_state) | 74 PROXY_METHOD0(IceState, ice_state) |
75 PROXY_METHOD0(IceConnectionState, ice_connection_state) | 75 PROXY_METHOD0(IceConnectionState, ice_connection_state) |
76 PROXY_METHOD0(IceGatheringState, ice_gathering_state) | 76 PROXY_METHOD0(IceGatheringState, ice_gathering_state) |
77 PROXY_METHOD0(void, Close) | 77 PROXY_METHOD0(void, Close) |
78 END_PROXY() | 78 END_SIGNALING_PROXY() |
79 | 79 |
80 } // namespace webrtc | 80 } // namespace webrtc |
81 | 81 |
82 #endif // WEBRTC_API_PEERCONNECTIONPROXY_H_ | 82 #endif // WEBRTC_API_PEERCONNECTIONPROXY_H_ |
OLD | NEW |