Housekeeping: Declare DataChannelController immovable

This should be done according to the C++ style guide.

Bug: none
Change-Id: I3f8d36339bbc7175bd67631e38820b5883e875d5
Reviewed-on: https://webrtc-review.googlesource.com/c/src/+/165386
Reviewed-by: Steve Anton <steveanton@webrtc.org>
Commit-Queue: Harald Alvestrand <hta@webrtc.org>
Cr-Commit-Position: refs/heads/master@{#30204}
This commit is contained in:
Harald Alvestrand 2020-01-09 13:29:56 +01:00 committed by Commit Bot
parent be4f9ed113
commit ab81316411

View File

@ -29,6 +29,12 @@ class DataChannelController : public DataChannelProviderInterface,
public:
explicit DataChannelController(PeerConnection* pc) : pc_(pc) {}
// Not copyable or movable.
DataChannelController(DataChannelController&) = delete;
DataChannelController& operator=(const DataChannelController& other) = delete;
DataChannelController(DataChannelController&&) = delete;
DataChannelController& operator=(DataChannelController&& other) = delete;
// Implements DataChannelProviderInterface.
bool SendData(const cricket::SendDataParams& params,
const rtc::CopyOnWriteBuffer& payload,