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

Unified Diff: content/browser/renderer_host/p2p/socket_host.cc

Issue 7529039: Properly handle STUN requests and responses from relay servers. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: - Created 9 years, 4 months 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
Index: content/browser/renderer_host/p2p/socket_host.cc
diff --git a/content/browser/renderer_host/p2p/socket_host.cc b/content/browser/renderer_host/p2p/socket_host.cc
index fea564ec5ec150f4869dd1ed8d4d958b55094ff3..09942876a2a4b2c7caf07f7415bfa77f982efa59 100644
--- a/content/browser/renderer_host/p2p/socket_host.cc
+++ b/content/browser/renderer_host/p2p/socket_host.cc
@@ -66,6 +66,12 @@ bool P2PSocketHost::GetStunPacketType(
}
// static
+bool P2PSocketHost::IsRequestOrResponse(StunMessageType type) {
+ return type == STUN_BINDING_REQUEST || type == STUN_BINDING_RESPONSE ||
+ type == STUN_ALLOCATE_REQUEST || type == STUN_ALLOCATE_RESPONSE;
+}
+
+// static
P2PSocketHost* P2PSocketHost::Create(
IPC::Message::Sender* message_sender, int routing_id, int id,
P2PSocketType type) {

Powered by Google App Engine
This is Rietveld 408576698