OLD | NEW |
1 // Copyright (c) 2011 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2011 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 "chrome/renderer/p2p/ipc_socket_factory.h" | 5 #include "content/renderer/p2p/ipc_socket_factory.h" |
6 | 6 |
7 #include "base/message_loop.h" | 7 #include "base/message_loop.h" |
8 #include "base/message_loop_proxy.h" | 8 #include "base/message_loop_proxy.h" |
9 #include "chrome/renderer/p2p/socket_client.h" | 9 #include "content/renderer/p2p/socket_client.h" |
10 #include "chrome/renderer/p2p/socket_dispatcher.h" | 10 #include "content/renderer/p2p/socket_dispatcher.h" |
11 #include "third_party/libjingle/source/talk/base/asyncpacketsocket.h" | 11 #include "third_party/libjingle/source/talk/base/asyncpacketsocket.h" |
12 | 12 |
13 namespace { | 13 namespace { |
14 | 14 |
15 const size_t kIPv4AddressSize = 4; | 15 const size_t kIPv4AddressSize = 4; |
16 | 16 |
17 // Chromium and libjingle represent socket addresses differently. The | 17 // Chromium and libjingle represent socket addresses differently. The |
18 // following two functions are used to convert addresses from one | 18 // following two functions are used to convert addresses from one |
19 // representation to another. | 19 // representation to another. |
20 bool ChromeToLibjingleSocketAddress(const net::IPEndPoint& address_chrome, | 20 bool ChromeToLibjingleSocketAddress(const net::IPEndPoint& address_chrome, |
(...skipping 293 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
314 | 314 |
315 talk_base::AsyncPacketSocket* IpcPacketSocketFactory::CreateClientTcpSocket( | 315 talk_base::AsyncPacketSocket* IpcPacketSocketFactory::CreateClientTcpSocket( |
316 const talk_base::SocketAddress& local_address, | 316 const talk_base::SocketAddress& local_address, |
317 const talk_base::SocketAddress& remote_address, | 317 const talk_base::SocketAddress& remote_address, |
318 const talk_base::ProxyInfo& proxy_info, | 318 const talk_base::ProxyInfo& proxy_info, |
319 const std::string& user_agent, bool ssl) { | 319 const std::string& user_agent, bool ssl) { |
320 // TODO(sergeyu): Implement this; | 320 // TODO(sergeyu): Implement this; |
321 NOTIMPLEMENTED(); | 321 NOTIMPLEMENTED(); |
322 return NULL; | 322 return NULL; |
323 } | 323 } |
OLD | NEW |