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

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

Issue 1547373002: Cease all future TURN requests when a TURN refresh request fails. (Closed) Base URL: https://chromium.googlesource.com/external/webrtc@master
Patch Set: Created 5 years 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/stunrequest.cc » ('j') | webrtc/p2p/base/turnport.h » ('J')
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: webrtc/p2p/base/stunrequest.h
diff --git a/webrtc/p2p/base/stunrequest.h b/webrtc/p2p/base/stunrequest.h
index 15ea0c73b734adeaa678a763a54982ae23e68f4d..df4f4a8aab3a097c6bf0e09432519f8276565097 100644
--- a/webrtc/p2p/base/stunrequest.h
+++ b/webrtc/p2p/base/stunrequest.h
@@ -32,8 +32,10 @@ class StunRequestManager {
void Send(StunRequest* request);
void SendDelayed(StunRequest* request, int delay);
- // Sends all pending requests right away. Only for testing.
- void Flush();
+ // If |msg_type| is 0, sends all pending requests right away.
+ // Otherwise, sends those that have a matching type right away.
+ // Only for testing.
pthatcher1 2016/01/05 00:10:03 Can you make a named constant for 0, like kAllRequ
honghaiz3 2016/01/05 04:47:39 Done.
+ void Flush(int msg_type);
// Removes a stun request that was added previously. This will happen
// automatically when a request succeeds, fails, or times out.
« no previous file with comments | « no previous file | webrtc/p2p/base/stunrequest.cc » ('j') | webrtc/p2p/base/turnport.h » ('J')

Powered by Google App Engine
This is Rietveld 408576698