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

Side by Side Diff: content/browser/renderer_host/p2p/socket_host.cc

Issue 22381012: Allow p2p UDP packages to set DSCP (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: test fix Created 7 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 unified diff | Download patch | Annotate | Revision Log
OLDNEW
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2012 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #include "content/browser/renderer_host/p2p/socket_host.h" 5 #include "content/browser/renderer_host/p2p/socket_host.h"
6 6
7 #include "base/sys_byteorder.h" 7 #include "base/sys_byteorder.h"
8 #include "content/browser/renderer_host/p2p/socket_host_tcp.h" 8 #include "content/browser/renderer_host/p2p/socket_host_tcp.h"
9 #include "content/browser/renderer_host/p2p/socket_host_tcp_server.h" 9 #include "content/browser/renderer_host/p2p/socket_host_tcp_server.h"
10 #include "content/browser/renderer_host/p2p/socket_host_udp.h" 10 #include "content/browser/renderer_host/p2p/socket_host_udp.h"
11 #include "net/udp/datagram_socket.h"
11 12
12 namespace { 13 namespace {
13 const uint32 kStunMagicCookie = 0x2112A442; 14 const uint32 kStunMagicCookie = 0x2112A442;
14 } // namespace 15 } // namespace
15 16
16 namespace content { 17 namespace content {
17 18
18 P2PSocketHost::P2PSocketHost(IPC::Sender* message_sender, int id) 19 P2PSocketHost::P2PSocketHost(IPC::Sender* message_sender, int id)
19 : message_sender_(message_sender), 20 : message_sender_(message_sender),
20 id_(id), 21 id_(id),
(...skipping 74 matching lines...) Expand 10 before | Expand all | Expand 10 after
95 case P2P_SOCKET_STUN_SSLTCP_CLIENT: 96 case P2P_SOCKET_STUN_SSLTCP_CLIENT:
96 case P2P_SOCKET_STUN_TLS_CLIENT: 97 case P2P_SOCKET_STUN_TLS_CLIENT:
97 return new P2PSocketHostStunTcp(message_sender, id, type, url_context); 98 return new P2PSocketHostStunTcp(message_sender, id, type, url_context);
98 } 99 }
99 100
100 NOTREACHED(); 101 NOTREACHED();
101 return NULL; 102 return NULL;
102 } 103 }
103 104
104 } // namespace content 105 } // namespace content
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698