commit 147b93b65fc9cec5223b1e18ba22760cb387031a
parent cc450376514d0fe852fab8e8cf77757a4983e67c
Author: Dan Baker <dbaker@mozilla.com>
Date: Mon, 27 Oct 2025 15:05:44 -0600
Bug 1995393 - Vendor libwebrtc from cbffa764b7
Upstream commit: https://webrtc.googlesource.com/src/+/cbffa764b7b0e42826dffb251996b3fe59981337
Make IceTransportInternal immovable and non-copyable
This makes reasoning about the class simpler, and allows it to have
non-copyable members.
Bug: webrtc:42222066
Change-Id: Ib39607a6fec92fb89879175f869bcf9e4b29dd67
Reviewed-on: https://webrtc-review.googlesource.com/c/src/+/406881
Reviewed-by: Tomas Gunnarsson <tommi@webrtc.org>
Commit-Queue: Harald Alvestrand <hta@webrtc.org>
Cr-Commit-Position: refs/heads/main@{#45479}
Diffstat:
2 files changed, 8 insertions(+), 2 deletions(-)
diff --git a/third_party/libwebrtc/README.mozilla.last-vendor b/third_party/libwebrtc/README.mozilla.last-vendor
@@ -1,4 +1,4 @@
# ./mach python dom/media/webrtc/third_party_build/vendor-libwebrtc.py --from-local /Users/danielbaker/elm/.moz-fast-forward/moz-libwebrtc --commit mozpatches libwebrtc
-libwebrtc updated from /Users/danielbaker/elm/.moz-fast-forward/moz-libwebrtc commit mozpatches on 2025-10-27T21:03:30.230454+00:00.
+libwebrtc updated from /Users/danielbaker/elm/.moz-fast-forward/moz-libwebrtc commit mozpatches on 2025-10-27T21:05:32.064657+00:00.
# base of lastest vendoring
-36a9782b94
+cbffa764b7
diff --git a/third_party/libwebrtc/p2p/base/ice_transport_internal.h b/third_party/libwebrtc/p2p/base/ice_transport_internal.h
@@ -258,6 +258,12 @@ class RTC_EXPORT IceTransportInternal : public PacketTransportInternal {
IceTransportInternal();
~IceTransportInternal() override;
+ // This class is uncopyable and immovable.
+ IceTransportInternal(const IceTransportInternal&) = delete;
+ IceTransportInternal& operator=(const IceTransportInternal&) = delete;
+ IceTransportInternal(IceTransportInternal&&) = delete;
+ IceTransportInternal& operator=(IceTransportInternal&&) = delete;
+
// TODO(bugs.webrtc.org/9308): Remove GetState once all uses have been
// migrated to GetIceTransportState.
virtual IceTransportStateInternal GetState() const = 0;