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 |
(...skipping 87 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
98 | 98 |
99 rtc::scoped_refptr<DataChannelInterface> CreateDataChannel( | 99 rtc::scoped_refptr<DataChannelInterface> CreateDataChannel( |
100 const std::string& label, | 100 const std::string& label, |
101 const DataChannelInit* config) override; | 101 const DataChannelInit* config) override; |
102 bool GetStats(StatsObserver* observer, | 102 bool GetStats(StatsObserver* observer, |
103 webrtc::MediaStreamTrackInterface* track, | 103 webrtc::MediaStreamTrackInterface* track, |
104 StatsOutputLevel level) override; | 104 StatsOutputLevel level) override; |
105 | 105 |
106 SignalingState signaling_state() override; | 106 SignalingState signaling_state() override; |
107 | 107 |
108 // TODO(bemasc): Remove ice_state() when callers are removed. | |
109 IceState ice_state() override; | |
110 IceConnectionState ice_connection_state() override; | 108 IceConnectionState ice_connection_state() override; |
111 IceGatheringState ice_gathering_state() override; | 109 IceGatheringState ice_gathering_state() override; |
112 | 110 |
113 const SessionDescriptionInterface* local_description() const override; | 111 const SessionDescriptionInterface* local_description() const override; |
114 const SessionDescriptionInterface* remote_description() const override; | 112 const SessionDescriptionInterface* remote_description() const override; |
115 | 113 |
116 // JSEP01 | 114 // JSEP01 |
117 // Deprecated, use version without constraints. | 115 // Deprecated, use version without constraints. |
118 void CreateOffer(CreateSessionDescriptionObserver* observer, | 116 void CreateOffer(CreateSessionDescriptionObserver* observer, |
119 const MediaConstraintsInterface* constraints) override; | 117 const MediaConstraintsInterface* constraints) override; |
(...skipping 254 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
374 // Storing the factory as a scoped reference pointer ensures that the memory | 372 // Storing the factory as a scoped reference pointer ensures that the memory |
375 // in the PeerConnectionFactoryImpl remains available as long as the | 373 // in the PeerConnectionFactoryImpl remains available as long as the |
376 // PeerConnection is running. It is passed to PeerConnection as a raw pointer. | 374 // PeerConnection is running. It is passed to PeerConnection as a raw pointer. |
377 // However, since the reference counting is done in the | 375 // However, since the reference counting is done in the |
378 // PeerConnectionFactoryInterface all instances created using the raw pointer | 376 // PeerConnectionFactoryInterface all instances created using the raw pointer |
379 // will refer to the same reference count. | 377 // will refer to the same reference count. |
380 rtc::scoped_refptr<PeerConnectionFactory> factory_; | 378 rtc::scoped_refptr<PeerConnectionFactory> factory_; |
381 PeerConnectionObserver* observer_; | 379 PeerConnectionObserver* observer_; |
382 UMAObserver* uma_observer_; | 380 UMAObserver* uma_observer_; |
383 SignalingState signaling_state_; | 381 SignalingState signaling_state_; |
384 // TODO(bemasc): Remove ice_state_. | |
385 IceState ice_state_; | |
386 IceConnectionState ice_connection_state_; | 382 IceConnectionState ice_connection_state_; |
387 IceGatheringState ice_gathering_state_; | 383 IceGatheringState ice_gathering_state_; |
388 | 384 |
389 std::unique_ptr<cricket::PortAllocator> port_allocator_; | 385 std::unique_ptr<cricket::PortAllocator> port_allocator_; |
390 std::unique_ptr<MediaControllerInterface> media_controller_; | 386 std::unique_ptr<MediaControllerInterface> media_controller_; |
391 | 387 |
392 // One PeerConnection has only one RTCP CNAME. | 388 // One PeerConnection has only one RTCP CNAME. |
393 // https://tools.ietf.org/html/draft-ietf-rtcweb-rtp-usage-26#section-4.9 | 389 // https://tools.ietf.org/html/draft-ietf-rtcweb-rtp-usage-26#section-4.9 |
394 std::string rtcp_cname_; | 390 std::string rtcp_cname_; |
395 | 391 |
(...skipping 24 matching lines...) Expand all Loading... |
420 rtc::scoped_refptr<RtpReceiverProxyWithInternal<RtpReceiverInternal>>> | 416 rtc::scoped_refptr<RtpReceiverProxyWithInternal<RtpReceiverInternal>>> |
421 receivers_; | 417 receivers_; |
422 | 418 |
423 std::unique_ptr<WebRtcSession> session_; | 419 std::unique_ptr<WebRtcSession> session_; |
424 std::unique_ptr<StatsCollector> stats_; | 420 std::unique_ptr<StatsCollector> stats_; |
425 }; | 421 }; |
426 | 422 |
427 } // namespace webrtc | 423 } // namespace webrtc |
428 | 424 |
429 #endif // WEBRTC_API_PEERCONNECTION_H_ | 425 #endif // WEBRTC_API_PEERCONNECTION_H_ |
OLD | NEW |