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

Side by Side Diff: remoting/protocol/chromium_socket_factory.cc

Issue 398813003: Cast Port Allocator Factory for PeerConnection (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Updates after Review Created 6 years, 5 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 unified diff | Download patch
« no previous file with comments | « remoting/host/chromium_port_allocator_factory.cc ('k') | remoting/remoting_host.gypi » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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
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
OLDNEW
« no previous file with comments | « remoting/host/chromium_port_allocator_factory.cc ('k') | remoting/remoting_host.gypi » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698