Index: webrtc/p2p/base/turnserver.h |
diff --git a/webrtc/p2p/base/turnserver.h b/webrtc/p2p/base/turnserver.h |
index 09b553ef175b314e594ec18a21e5edd7c7f5922b..600f8d5b7c64c14797d6b85b7bb78da46a95e480 100644 |
--- a/webrtc/p2p/base/turnserver.h |
+++ b/webrtc/p2p/base/turnserver.h |
@@ -16,8 +16,10 @@ |
#include <memory> |
#include <set> |
#include <string> |
+#include <vector> |
#include "webrtc/p2p/base/portinterface.h" |
+#include "webrtc/base/asyncinvoker.h" |
#include "webrtc/base/asyncpacketsocket.h" |
#include "webrtc/base/messagequeue.h" |
#include "webrtc/base/sigslot.h" |
@@ -278,11 +280,15 @@ class TurnServer : public sigslot::has_slots<> { |
InternalSocketMap server_sockets_; |
ServerSocketMap server_listen_sockets_; |
+ // Used when we need to delete a socket asynchronously. |
+ std::vector<std::unique_ptr<rtc::AsyncPacketSocket>> pending_delete_sockets_; |
pthatcher1
2016/08/23 00:36:55
I'd prefer a name like sockets_to_delete.
Taylor Brandstetter
2016/08/23 01:11:20
Done.
|
std::unique_ptr<rtc::PacketSocketFactory> external_socket_factory_; |
rtc::SocketAddress external_addr_; |
AllocationMap allocations_; |
+ rtc::AsyncInvoker invoker_; |
+ |
// For testing only. If this is non-zero, the next NONCE will be generated |
// from this value, and it will be reset to 0 after generating the NONCE. |
int64_t ts_for_next_nonce_ = 0; |