| 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_PEERCONNECTION_H_ | 11 #ifndef WEBRTC_API_PEERCONNECTION_H_ |
| 12 #define WEBRTC_API_PEERCONNECTION_H_ | 12 #define WEBRTC_API_PEERCONNECTION_H_ |
| 13 | 13 |
| 14 #include <string> | 14 #include <string> |
| 15 #include <map> | 15 #include <map> |
| 16 #include <memory> | 16 #include <memory> |
| 17 #include <vector> | 17 #include <vector> |
| 18 | 18 |
| 19 #include "webrtc/api/peerconnectionfactory.h" | 19 #include "webrtc/api/peerconnectionfactory.h" |
| 20 #include "webrtc/api/peerconnectioninterface.h" | 20 #include "webrtc/api/peerconnectioninterface.h" |
| 21 #include "webrtc/api/rtcstatscollector.h" |
| 21 #include "webrtc/api/rtpreceiver.h" | 22 #include "webrtc/api/rtpreceiver.h" |
| 22 #include "webrtc/api/rtpsender.h" | 23 #include "webrtc/api/rtpsender.h" |
| 23 #include "webrtc/api/statscollector.h" | 24 #include "webrtc/api/statscollector.h" |
| 24 #include "webrtc/api/streamcollection.h" | 25 #include "webrtc/api/streamcollection.h" |
| 25 #include "webrtc/api/webrtcsession.h" | 26 #include "webrtc/api/webrtcsession.h" |
| 26 | 27 |
| 27 namespace webrtc { | 28 namespace webrtc { |
| 28 | 29 |
| 29 class MediaStreamObserver; | 30 class MediaStreamObserver; |
| 30 class VideoRtpReceiver; | 31 class VideoRtpReceiver; |
| (...skipping 64 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 95 const override; | 96 const override; |
| 96 std::vector<rtc::scoped_refptr<RtpReceiverInterface>> GetReceivers() | 97 std::vector<rtc::scoped_refptr<RtpReceiverInterface>> GetReceivers() |
| 97 const override; | 98 const override; |
| 98 | 99 |
| 99 rtc::scoped_refptr<DataChannelInterface> CreateDataChannel( | 100 rtc::scoped_refptr<DataChannelInterface> CreateDataChannel( |
| 100 const std::string& label, | 101 const std::string& label, |
| 101 const DataChannelInit* config) override; | 102 const DataChannelInit* config) override; |
| 102 bool GetStats(StatsObserver* observer, | 103 bool GetStats(StatsObserver* observer, |
| 103 webrtc::MediaStreamTrackInterface* track, | 104 webrtc::MediaStreamTrackInterface* track, |
| 104 StatsOutputLevel level) override; | 105 StatsOutputLevel level) override; |
| 106 void GetStats(RTCStatsCollectorCallback* callback) override; |
| 105 | 107 |
| 106 SignalingState signaling_state() override; | 108 SignalingState signaling_state() override; |
| 107 | 109 |
| 108 // TODO(bemasc): Remove ice_state() when callers are removed. | 110 // TODO(bemasc): Remove ice_state() when callers are removed. |
| 109 IceState ice_state() override; | 111 IceState ice_state() override; |
| 110 IceConnectionState ice_connection_state() override; | 112 IceConnectionState ice_connection_state() override; |
| 111 IceGatheringState ice_gathering_state() override; | 113 IceGatheringState ice_gathering_state() override; |
| 112 | 114 |
| 113 const SessionDescriptionInterface* local_description() const override; | 115 const SessionDescriptionInterface* local_description() const override; |
| 114 const SessionDescriptionInterface* remote_description() const override; | 116 const SessionDescriptionInterface* remote_description() const override; |
| (...skipping 305 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 420 bool enable_ice_renomination_ = false; | 422 bool enable_ice_renomination_ = false; |
| 421 | 423 |
| 422 std::vector<rtc::scoped_refptr<RtpSenderProxyWithInternal<RtpSenderInternal>>> | 424 std::vector<rtc::scoped_refptr<RtpSenderProxyWithInternal<RtpSenderInternal>>> |
| 423 senders_; | 425 senders_; |
| 424 std::vector< | 426 std::vector< |
| 425 rtc::scoped_refptr<RtpReceiverProxyWithInternal<RtpReceiverInternal>>> | 427 rtc::scoped_refptr<RtpReceiverProxyWithInternal<RtpReceiverInternal>>> |
| 426 receivers_; | 428 receivers_; |
| 427 | 429 |
| 428 std::unique_ptr<WebRtcSession> session_; | 430 std::unique_ptr<WebRtcSession> session_; |
| 429 std::unique_ptr<StatsCollector> stats_; | 431 std::unique_ptr<StatsCollector> stats_; |
| 432 rtc::scoped_refptr<RTCStatsCollector> stats_collector_; |
| 430 }; | 433 }; |
| 431 | 434 |
| 432 } // namespace webrtc | 435 } // namespace webrtc |
| 433 | 436 |
| 434 #endif // WEBRTC_API_PEERCONNECTION_H_ | 437 #endif // WEBRTC_API_PEERCONNECTION_H_ |
| OLD | NEW |