summaryrefslogtreecommitdiffstats
path: root/dom/media/webrtc/jsapi/MediaTransportParent.cpp
diff options
context:
space:
mode:
authorDaniel Baumann <daniel.baumann@progress-linux.org>2024-04-19 01:13:27 +0000
committerDaniel Baumann <daniel.baumann@progress-linux.org>2024-04-19 01:13:27 +0000
commit40a355a42d4a9444dc753c04c6608dade2f06a23 (patch)
tree871fc667d2de662f171103ce5ec067014ef85e61 /dom/media/webrtc/jsapi/MediaTransportParent.cpp
parentAdding upstream version 124.0.1. (diff)
downloadfirefox-upstream/125.0.1.tar.xz
firefox-upstream/125.0.1.zip
Adding upstream version 125.0.1.upstream/125.0.1
Signed-off-by: Daniel Baumann <daniel.baumann@progress-linux.org>
Diffstat (limited to 'dom/media/webrtc/jsapi/MediaTransportParent.cpp')
-rw-r--r--dom/media/webrtc/jsapi/MediaTransportParent.cpp14
1 files changed, 8 insertions, 6 deletions
diff --git a/dom/media/webrtc/jsapi/MediaTransportParent.cpp b/dom/media/webrtc/jsapi/MediaTransportParent.cpp
index 31d0b9f30f..4bbd75b41c 100644
--- a/dom/media/webrtc/jsapi/MediaTransportParent.cpp
+++ b/dom/media/webrtc/jsapi/MediaTransportParent.cpp
@@ -49,14 +49,16 @@ class MediaTransportParent::Impl : public sigslot::has_slots<> {
NS_ENSURE_TRUE_VOID(mParent->SendOnAlpnNegotiated(aAlpn));
}
- void OnGatheringStateChange(dom::RTCIceGatheringState aState) {
- NS_ENSURE_TRUE_VOID(
- mParent->SendOnGatheringStateChange(static_cast<int>(aState)));
+ void OnGatheringStateChange(const std::string& aTransportId,
+ dom::RTCIceGathererState aState) {
+ NS_ENSURE_TRUE_VOID(mParent->SendOnGatheringStateChange(
+ aTransportId, static_cast<int>(aState)));
}
- void OnConnectionStateChange(dom::RTCIceConnectionState aState) {
- NS_ENSURE_TRUE_VOID(
- mParent->SendOnConnectionStateChange(static_cast<int>(aState)));
+ void OnConnectionStateChange(const std::string& aTransportId,
+ dom::RTCIceTransportState aState) {
+ NS_ENSURE_TRUE_VOID(mParent->SendOnConnectionStateChange(
+ aTransportId, static_cast<int>(aState)));
}
void OnPacketReceived(const std::string& aTransportId,