| 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 #ifndef NET_SOCKET_TCP_SERVER_SOCKET_H_ | 5 #ifndef NET_SOCKET_TCP_SERVER_SOCKET_H_ |
| 6 #define NET_SOCKET_TCP_SERVER_SOCKET_H_ | 6 #define NET_SOCKET_TCP_SERVER_SOCKET_H_ |
| 7 | 7 |
| 8 #include "base/basictypes.h" | 8 #include "base/basictypes.h" |
| 9 #include "base/compiler_specific.h" | 9 #include "base/compiler_specific.h" |
| 10 #include "base/memory/scoped_ptr.h" | 10 #include "base/memory/scoped_ptr.h" |
| (...skipping 30 matching lines...) Expand all Loading... |
| 41 | 41 |
| 42 TCPSocket socket_; | 42 TCPSocket socket_; |
| 43 | 43 |
| 44 scoped_ptr<TCPSocket> accepted_socket_; | 44 scoped_ptr<TCPSocket> accepted_socket_; |
| 45 IPEndPoint accepted_address_; | 45 IPEndPoint accepted_address_; |
| 46 bool pending_accept_; | 46 bool pending_accept_; |
| 47 | 47 |
| 48 DISALLOW_COPY_AND_ASSIGN(TCPServerSocket); | 48 DISALLOW_COPY_AND_ASSIGN(TCPServerSocket); |
| 49 }; | 49 }; |
| 50 | 50 |
| 51 class TCPServerSocketFactory : public ServerSocketFactory { |
| 52 public: |
| 53 TCPServerSocketFactory(); |
| 54 |
| 55 private: |
| 56 // ServerSocketFactory. |
| 57 virtual scoped_ptr<ServerSocket> Create() const OVERRIDE; |
| 58 |
| 59 DISALLOW_COPY_AND_ASSIGN(TCPServerSocketFactory); |
| 60 }; |
| 61 |
| 51 } // namespace net | 62 } // namespace net |
| 52 | 63 |
| 53 #endif // NET_SOCKET_TCP_SERVER_SOCKET_H_ | 64 #endif // NET_SOCKET_TCP_SERVER_SOCKET_H_ |
| OLD | NEW |