OLD | NEW |
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/renderer/p2p/ipc_socket_factory.h" | 5 #include "content/renderer/p2p/ipc_socket_factory.h" |
6 | 6 |
7 #include <deque> | 7 #include <deque> |
8 | 8 |
9 #include "base/compiler_specific.h" | 9 #include "base/compiler_specific.h" |
10 #include "base/debug/trace_event.h" | 10 #include "base/debug/trace_event.h" |
11 #include "base/message_loop.h" | 11 #include "base/message_loop.h" |
12 #include "base/message_loop_proxy.h" | 12 #include "base/message_loop/message_loop_proxy.h" |
13 #include "content/renderer/p2p/socket_client.h" | 13 #include "content/renderer/p2p/socket_client.h" |
14 #include "content/renderer/p2p/socket_dispatcher.h" | 14 #include "content/renderer/p2p/socket_dispatcher.h" |
15 #include "jingle/glue/utils.h" | 15 #include "jingle/glue/utils.h" |
16 #include "third_party/libjingle/source/talk/base/asyncpacketsocket.h" | 16 #include "third_party/libjingle/source/talk/base/asyncpacketsocket.h" |
17 | 17 |
18 namespace content { | 18 namespace content { |
19 | 19 |
20 namespace { | 20 namespace { |
21 | 21 |
22 // TODO(miu): This needs tuning. http://crbug.com/237960 | 22 // TODO(miu): This needs tuning. http://crbug.com/237960 |
(...skipping 404 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
427 P2P_SOCKET_STUN_TCP_CLIENT : P2P_SOCKET_TCP_CLIENT; | 427 P2P_SOCKET_STUN_TCP_CLIENT : P2P_SOCKET_TCP_CLIENT; |
428 P2PSocketClient* socket_client = new P2PSocketClient(socket_dispatcher_); | 428 P2PSocketClient* socket_client = new P2PSocketClient(socket_dispatcher_); |
429 scoped_ptr<IpcPacketSocket> socket(new IpcPacketSocket()); | 429 scoped_ptr<IpcPacketSocket> socket(new IpcPacketSocket()); |
430 if (!socket->Init(type, socket_client, local_address, | 430 if (!socket->Init(type, socket_client, local_address, |
431 remote_address)) | 431 remote_address)) |
432 return NULL; | 432 return NULL; |
433 return socket.release(); | 433 return socket.release(); |
434 } | 434 } |
435 | 435 |
436 } // namespace content | 436 } // namespace content |
OLD | NEW |