diff options
Diffstat (limited to 'p2p/base/turn_port.h')
-rw-r--r-- | p2p/base/turn_port.h | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/p2p/base/turn_port.h b/p2p/base/turn_port.h index 55dbda5ece..8ed7cefa8e 100644 --- a/p2p/base/turn_port.h +++ b/p2p/base/turn_port.h @@ -25,6 +25,7 @@ #include "p2p/client/basic_port_allocator.h" #include "rtc_base/async_packet_socket.h" #include "rtc_base/async_resolver_interface.h" +#include "rtc_base/message_handler.h" #include "rtc_base/ssl_certificate.h" #include "rtc_base/task_utils/pending_task_safety_flag.h" @@ -41,7 +42,7 @@ extern const char TURN_PORT_TYPE[]; class TurnAllocateRequest; class TurnEntry; -class TurnPort : public Port { +class TurnPort : public Port, public rtc::MessageHandler { public: enum PortState { STATE_CONNECTING, // Initial state, cannot send any packets. @@ -298,7 +299,7 @@ class TurnPort : public Port { private: enum { - MSG_ALLOCATE_ERROR = MSG_FIRST_AVAILABLE, + MSG_ALLOCATE_ERROR, MSG_ALLOCATE_MISMATCH, MSG_TRY_ALTERNATE_SERVER, MSG_REFRESH_ERROR, |