| OLD | NEW |
| 1 // Copyright 2013 The Chromium Authors. All rights reserved. | 1 // Copyright 2013 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 "net/socket/tcp_server_socket.h" | 5 #include "net/socket/tcp_server_socket.h" |
| 6 | 6 |
| 7 #include "base/bind.h" | 7 #include "base/bind.h" |
| 8 #include "base/bind_helpers.h" | 8 #include "base/bind_helpers.h" |
| 9 #include "base/logging.h" | 9 #include "base/logging.h" |
| 10 #include "net/base/net_errors.h" | 10 #include "net/base/net_errors.h" |
| (...skipping 84 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 95 | 95 |
| 96 void TCPServerSocket::OnAcceptCompleted( | 96 void TCPServerSocket::OnAcceptCompleted( |
| 97 scoped_ptr<StreamSocket>* output_accepted_socket, | 97 scoped_ptr<StreamSocket>* output_accepted_socket, |
| 98 const CompletionCallback& forward_callback, | 98 const CompletionCallback& forward_callback, |
| 99 int result) { | 99 int result) { |
| 100 result = ConvertAcceptedSocket(result, output_accepted_socket); | 100 result = ConvertAcceptedSocket(result, output_accepted_socket); |
| 101 pending_accept_ = false; | 101 pending_accept_ = false; |
| 102 forward_callback.Run(result); | 102 forward_callback.Run(result); |
| 103 } | 103 } |
| 104 | 104 |
| 105 TCPServerSocketFactory::TCPServerSocketFactory() { |
| 106 } |
| 107 |
| 108 scoped_ptr<ServerSocket> TCPServerSocketFactory::Create() const { |
| 109 return scoped_ptr<ServerSocket>(new TCPServerSocket(NULL, NetLog::Source())); |
| 110 } |
| 111 |
| 105 } // namespace net | 112 } // namespace net |
| OLD | NEW |