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 275 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
286 const rtc::scoped_refptr<rtc::RTCCertificate>& certificate); | 286 const rtc::scoped_refptr<rtc::RTCCertificate>& certificate); |
287 void OnDtlsSetupFailure(cricket::BaseChannel*, bool rtcp); | 287 void OnDtlsSetupFailure(cricket::BaseChannel*, bool rtcp); |
288 | 288 |
289 // For unit test. | 289 // For unit test. |
290 bool waiting_for_certificate_for_testing() const; | 290 bool waiting_for_certificate_for_testing() const; |
291 const rtc::scoped_refptr<rtc::RTCCertificate>& certificate_for_testing(); | 291 const rtc::scoped_refptr<rtc::RTCCertificate>& certificate_for_testing(); |
292 | 292 |
293 void set_metrics_observer( | 293 void set_metrics_observer( |
294 webrtc::MetricsObserverInterface* metrics_observer) { | 294 webrtc::MetricsObserverInterface* metrics_observer) { |
295 metrics_observer_ = metrics_observer; | 295 metrics_observer_ = metrics_observer; |
| 296 transport_controller_->SetMetricsObserver(metrics_observer); |
296 } | 297 } |
297 | 298 |
298 // Called when voice_channel_, video_channel_ and data_channel_ are created | 299 // Called when voice_channel_, video_channel_ and data_channel_ are created |
299 // and destroyed. As a result of, for example, setting a new description. | 300 // and destroyed. As a result of, for example, setting a new description. |
300 sigslot::signal0<> SignalVoiceChannelCreated; | 301 sigslot::signal0<> SignalVoiceChannelCreated; |
301 sigslot::signal0<> SignalVoiceChannelDestroyed; | 302 sigslot::signal0<> SignalVoiceChannelDestroyed; |
302 sigslot::signal0<> SignalVideoChannelCreated; | 303 sigslot::signal0<> SignalVideoChannelCreated; |
303 sigslot::signal0<> SignalVideoChannelDestroyed; | 304 sigslot::signal0<> SignalVideoChannelDestroyed; |
304 sigslot::signal0<> SignalDataChannelCreated; | 305 sigslot::signal0<> SignalDataChannelCreated; |
305 sigslot::signal0<> SignalDataChannelDestroyed; | 306 sigslot::signal0<> SignalDataChannelDestroyed; |
(...skipping 213 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
519 | 520 |
520 #ifdef HAVE_QUIC | 521 #ifdef HAVE_QUIC |
521 std::unique_ptr<QuicDataTransport> quic_data_transport_; | 522 std::unique_ptr<QuicDataTransport> quic_data_transport_; |
522 #endif // HAVE_QUIC | 523 #endif // HAVE_QUIC |
523 | 524 |
524 RTC_DISALLOW_COPY_AND_ASSIGN(WebRtcSession); | 525 RTC_DISALLOW_COPY_AND_ASSIGN(WebRtcSession); |
525 }; | 526 }; |
526 } // namespace webrtc | 527 } // namespace webrtc |
527 | 528 |
528 #endif // WEBRTC_API_WEBRTCSESSION_H_ | 529 #endif // WEBRTC_API_WEBRTCSESSION_H_ |
OLD | NEW |