Move RtcpTransceiver deletion of copy and assign methods to public section
Bug: chromium:881453
Change-Id: Iff5c522b983af018c1308649887a1121519c73ea
Reviewed-on: https://webrtc-review.googlesource.com/98981
Reviewed-by: Mirko Bonadei <mbonadei@webrtc.org>
Commit-Queue: Danil Chapovalov <danilchap@webrtc.org>
Cr-Commit-Position: refs/heads/master@{#24652}
diff --git a/modules/rtp_rtcp/source/rtcp_transceiver.h b/modules/rtp_rtcp/source/rtcp_transceiver.h
index 9f823cc..fc9488c 100644
--- a/modules/rtp_rtcp/source/rtcp_transceiver.h
+++ b/modules/rtp_rtcp/source/rtcp_transceiver.h
@@ -17,7 +17,6 @@
#include "modules/rtp_rtcp/source/rtcp_transceiver_config.h"
#include "modules/rtp_rtcp/source/rtcp_transceiver_impl.h"
-#include "rtc_base/constructormagic.h"
#include "rtc_base/copyonwritebuffer.h"
#include "rtc_base/task_queue.h"
@@ -29,6 +28,8 @@
class RtcpTransceiver : public RtcpFeedbackSenderInterface {
public:
explicit RtcpTransceiver(const RtcpTransceiverConfig& config);
+ RtcpTransceiver(const RtcpTransceiver&) = delete;
+ RtcpTransceiver& operator=(const RtcpTransceiver&) = delete;
// Note that interfaces provided in constructor still might be used after the
// destructor. However they can only be used on the confic.task_queue.
// Use Stop function to get notified when they are no longer used or
@@ -91,8 +92,6 @@
private:
rtc::TaskQueue* const task_queue_;
std::unique_ptr<RtcpTransceiverImpl> rtcp_transceiver_;
-
- RTC_DISALLOW_IMPLICIT_CONSTRUCTORS(RtcpTransceiver);
};
} // namespace webrtc