Chromium Code Reviews| 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 "remoting/jingle_glue/chromium_socket_factory.h" | 5 #include "remoting/jingle_glue/chromium_socket_factory.h" |
|
Sergey Ulanov
2014/07/17 18:54:40
FYI I've moved this file to remoting/protocol - yo
aiguha
2014/07/17 19:39:59
Thanks. When would be the right time to do that?
| |
| 6 | 6 |
| 7 #include "base/bind.h" | 7 #include "base/bind.h" |
| 8 #include "base/logging.h" | 8 #include "base/logging.h" |
| 9 #include "base/memory/scoped_ptr.h" | 9 #include "base/memory/scoped_ptr.h" |
| 10 #include "jingle/glue/utils.h" | 10 #include "jingle/glue/utils.h" |
| 11 #include "net/base/io_buffer.h" | 11 #include "net/base/io_buffer.h" |
| 12 #include "net/base/ip_endpoint.h" | 12 #include "net/base/ip_endpoint.h" |
| 13 #include "net/base/net_errors.h" | 13 #include "net/base/net_errors.h" |
| 14 #include "net/udp/udp_server_socket.h" | 14 #include "net/udp/udp_server_socket.h" |
| 15 #include "remoting/jingle_glue/socket_util.h" | 15 #include "remoting/jingle_glue/socket_util.h" |
| (...skipping 348 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 364 return NULL; | 364 return NULL; |
| 365 return result.release(); | 365 return result.release(); |
| 366 } | 366 } |
| 367 | 367 |
| 368 talk_base::AsyncPacketSocket* | 368 talk_base::AsyncPacketSocket* |
| 369 ChromiumPacketSocketFactory::CreateServerTcpSocket( | 369 ChromiumPacketSocketFactory::CreateServerTcpSocket( |
| 370 const talk_base::SocketAddress& local_address, | 370 const talk_base::SocketAddress& local_address, |
| 371 int min_port, int max_port, | 371 int min_port, int max_port, |
| 372 int opts) { | 372 int opts) { |
| 373 // We don't use TCP sockets for remoting connections. | 373 // We don't use TCP sockets for remoting connections. |
| 374 NOTREACHED(); | 374 // NOTREACHED(); |
|
aiguha
2014/07/17 03:11:36
There seems to be no way to restrict WebRTC from t
Sergey Ulanov
2014/07/17 18:54:40
I think what might be happening is that the peer (
aiguha
2014/07/17 19:39:59
Done.
aiguha
2014/07/17 19:39:59
You're right, I think that's exactly what's happen
| |
| 375 return NULL; | 375 return NULL; |
| 376 } | 376 } |
| 377 | 377 |
| 378 talk_base::AsyncPacketSocket* | 378 talk_base::AsyncPacketSocket* |
| 379 ChromiumPacketSocketFactory::CreateClientTcpSocket( | 379 ChromiumPacketSocketFactory::CreateClientTcpSocket( |
| 380 const talk_base::SocketAddress& local_address, | 380 const talk_base::SocketAddress& local_address, |
| 381 const talk_base::SocketAddress& remote_address, | 381 const talk_base::SocketAddress& remote_address, |
| 382 const talk_base::ProxyInfo& proxy_info, | 382 const talk_base::ProxyInfo& proxy_info, |
| 383 const std::string& user_agent, | 383 const std::string& user_agent, |
| 384 int opts) { | 384 int opts) { |
| 385 // We don't use TCP sockets for remoting connections. | 385 // We don't use TCP sockets for remoting connections. |
| 386 NOTREACHED(); | 386 NOTREACHED(); |
| 387 return NULL; | 387 return NULL; |
| 388 } | 388 } |
| 389 | 389 |
| 390 talk_base::AsyncResolverInterface* | 390 talk_base::AsyncResolverInterface* |
| 391 ChromiumPacketSocketFactory::CreateAsyncResolver() { | 391 ChromiumPacketSocketFactory::CreateAsyncResolver() { |
| 392 return new talk_base::AsyncResolver(); | 392 return new talk_base::AsyncResolver(); |
| 393 } | 393 } |
| 394 | 394 |
| 395 } // namespace remoting | 395 } // namespace remoting |
| OLD | NEW |