Make MessageHandler be a pure virtual interface.

Bug: webrtc:11908
Change-Id: I35d3c4005d970082bff8c5ff24186aab54205c37
Reviewed-on: https://webrtc-review.googlesource.com/c/src/+/185340
Reviewed-by: Karl Wiberg <kwiberg@webrtc.org>
Commit-Queue: Tommi <tommi@webrtc.org>
Cr-Commit-Position: refs/heads/master@{#32194}
This commit is contained in:
Tomas Gunnarsson
2020-09-24 22:39:21 +02:00
committed by Commit Bot
parent ad148272b8
commit 77baeee99e
12 changed files with 20 additions and 55 deletions

View File

@ -174,8 +174,7 @@ bool StunRequestManager::CheckResponse(const char* data, size_t size) {
}
StunRequest::StunRequest()
: rtc::MessageHandler(false),
count_(0),
: count_(0),
timeout_(false),
manager_(0),
msg_(new StunMessage()),
@ -184,12 +183,7 @@ StunRequest::StunRequest()
}
StunRequest::StunRequest(StunMessage* request)
: rtc::MessageHandler(false),
count_(0),
timeout_(false),
manager_(0),
msg_(request),
tstamp_(0) {
: count_(0), timeout_(false), manager_(0), msg_(request), tstamp_(0) {
msg_->SetTransactionID(rtc::CreateRandomString(kStunTransactionIdLength));
}