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

Unified Diff: trunk/src/content/browser/renderer_host/p2p/socket_host_tcp_server.cc

Issue 307063003: Revert 273745 "Implements RTP header dumping." due to memory leak (Closed) Base URL: svn://svn.chromium.org/chrome/
Patch Set: Created 6 years, 7 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: trunk/src/content/browser/renderer_host/p2p/socket_host_tcp_server.cc
===================================================================
--- trunk/src/content/browser/renderer_host/p2p/socket_host_tcp_server.cc (revision 273764)
+++ trunk/src/content/browser/renderer_host/p2p/socket_host_tcp_server.cc (working copy)
@@ -20,14 +20,14 @@
namespace content {
-P2PSocketHostTcpServer::P2PSocketHostTcpServer(IPC::Sender* message_sender,
- int socket_id,
- P2PSocketType client_type)
- : P2PSocketHost(message_sender, socket_id),
+P2PSocketHostTcpServer::P2PSocketHostTcpServer(
+ IPC::Sender* message_sender, int id, P2PSocketType client_type)
+ : P2PSocketHost(message_sender, id),
client_type_(client_type),
socket_(new net::TCPServerSocket(NULL, net::NetLog::Source())),
- accept_callback_(base::Bind(&P2PSocketHostTcpServer::OnAccepted,
- base::Unretained(this))) {
+ accept_callback_(
+ base::Bind(&P2PSocketHostTcpServer::OnAccepted,
+ base::Unretained(this))) {
}
P2PSocketHostTcpServer::~P2PSocketHostTcpServer() {
@@ -135,8 +135,8 @@
if (client_type_ == P2P_SOCKET_TCP_CLIENT) {
result.reset(new P2PSocketHostTcp(message_sender_, id, client_type_, NULL));
} else {
- result.reset(
- new P2PSocketHostStunTcp(message_sender_, id, client_type_, NULL));
+ result.reset(new P2PSocketHostStunTcp(
+ message_sender_, id, client_type_, NULL));
}
if (!result->InitAccepted(remote_address, socket))
return NULL;

Powered by Google App Engine
This is Rietveld 408576698