Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(288)

Unified Diff: webrtc/p2p/base/turnport.h

Issue 1449863002: Revert of Do not delete the turn port entry right away when the respective connection is deleted. (Closed) Base URL: https://chromium.googlesource.com/external/webrtc@master
Patch Set: Created 5 years, 1 month ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « no previous file | webrtc/p2p/base/turnport.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: webrtc/p2p/base/turnport.h
diff --git a/webrtc/p2p/base/turnport.h b/webrtc/p2p/base/turnport.h
index db2a3ceeeec8ff7e127d12758c15a1c12b41cb8a..3a1b4320e43b99f887d8351690114c900381254d 100644
--- a/webrtc/p2p/base/turnport.h
+++ b/webrtc/p2p/base/turnport.h
@@ -16,10 +16,9 @@
#include <set>
#include <string>
-#include "webrtc/base/asyncinvoker.h"
-#include "webrtc/base/asyncpacketsocket.h"
#include "webrtc/p2p/base/port.h"
#include "webrtc/p2p/client/basicportallocator.h"
+#include "webrtc/base/asyncpacketsocket.h"
namespace rtc {
class AsyncResolver;
@@ -123,9 +122,6 @@
return socket_;
}
- // For testing only.
- rtc::AsyncInvoker* invoker() { return &invoker_; }
-
// Signal with resolved server address.
// Parameters are port, server address and resolved server address.
// This signal will be sent only if server address is resolved successfully.
@@ -219,13 +215,8 @@
bool HasPermission(const rtc::IPAddress& ipaddr) const;
TurnEntry* FindEntry(const rtc::SocketAddress& address) const;
TurnEntry* FindEntry(int channel_id) const;
- void CreateOrRefreshEntry(const rtc::SocketAddress& address);
- void DestroyEntry(TurnEntry* entry);
- // Destroys the entry only if |timestamp| matches the destruction timestamp
- // in |entry|.
- void DestroyEntryIfNotCancelled(TurnEntry* entry, uint32_t timestamp);
- void ScheduleEntryDestruction(TurnEntry* entry);
- void CancelEntryDestruction(TurnEntry* entry);
+ TurnEntry* CreateEntry(const rtc::SocketAddress& address);
+ void DestroyEntry(const rtc::SocketAddress& address);
void OnConnectionDestroyed(Connection* conn);
ProtocolAddress server_address_;
@@ -252,8 +243,6 @@
// The number of retries made due to allocate mismatch error.
size_t allocate_mismatch_retries_;
-
- rtc::AsyncInvoker invoker_;
friend class TurnEntry;
friend class TurnAllocateRequest;
« no previous file with comments | « no previous file | webrtc/p2p/base/turnport.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698