OLD | NEW |
1 // Copyright 2014 The Chromium Authors. All rights reserved. | 1 // Copyright 2014 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/protocol/chromium_socket_factory.h" | 5 #include "remoting/protocol/chromium_socket_factory.h" |
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" |
(...skipping 354 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
365 return NULL; | 365 return NULL; |
366 return result.release(); | 366 return result.release(); |
367 } | 367 } |
368 | 368 |
369 talk_base::AsyncPacketSocket* | 369 talk_base::AsyncPacketSocket* |
370 ChromiumPacketSocketFactory::CreateServerTcpSocket( | 370 ChromiumPacketSocketFactory::CreateServerTcpSocket( |
371 const talk_base::SocketAddress& local_address, | 371 const talk_base::SocketAddress& local_address, |
372 int min_port, int max_port, | 372 int min_port, int max_port, |
373 int opts) { | 373 int opts) { |
374 // We don't use TCP sockets for remoting connections. | 374 // We don't use TCP sockets for remoting connections. |
375 NOTREACHED(); | 375 NOTIMPLEMENTED(); |
376 return NULL; | 376 return NULL; |
377 } | 377 } |
378 | 378 |
379 talk_base::AsyncPacketSocket* | 379 talk_base::AsyncPacketSocket* |
380 ChromiumPacketSocketFactory::CreateClientTcpSocket( | 380 ChromiumPacketSocketFactory::CreateClientTcpSocket( |
381 const talk_base::SocketAddress& local_address, | 381 const talk_base::SocketAddress& local_address, |
382 const talk_base::SocketAddress& remote_address, | 382 const talk_base::SocketAddress& remote_address, |
383 const talk_base::ProxyInfo& proxy_info, | 383 const talk_base::ProxyInfo& proxy_info, |
384 const std::string& user_agent, | 384 const std::string& user_agent, |
385 int opts) { | 385 int opts) { |
386 // We don't use TCP sockets for remoting connections. | 386 // We don't use TCP sockets for remoting connections. |
387 NOTREACHED(); | 387 NOTREACHED(); |
388 return NULL; | 388 return NULL; |
389 } | 389 } |
390 | 390 |
391 talk_base::AsyncResolverInterface* | 391 talk_base::AsyncResolverInterface* |
392 ChromiumPacketSocketFactory::CreateAsyncResolver() { | 392 ChromiumPacketSocketFactory::CreateAsyncResolver() { |
393 return new talk_base::AsyncResolver(); | 393 return new talk_base::AsyncResolver(); |
394 } | 394 } |
395 | 395 |
396 } // namespace protocol | 396 } // namespace protocol |
397 } // namespace remoting | 397 } // namespace remoting |
OLD | NEW |