| 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_SERVER_SOCKET_H_ | 5 #ifndef NET_SOCKET_SERVER_SOCKET_H_ |
| 6 #define NET_SOCKET_SERVER_SOCKET_H_ | 6 #define NET_SOCKET_SERVER_SOCKET_H_ |
| 7 | 7 |
| 8 #include "base/scoped_ptr.h" | 8 #include "base/memory/scoped_ptr.h" |
| 9 #include "net/base/completion_callback.h" | 9 #include "net/base/completion_callback.h" |
| 10 #include "net/base/net_api.h" | 10 #include "net/base/net_api.h" |
| 11 | 11 |
| 12 namespace net { | 12 namespace net { |
| 13 | 13 |
| 14 class IPEndPoint; | 14 class IPEndPoint; |
| 15 class StreamSocket; | 15 class StreamSocket; |
| 16 | 16 |
| 17 class NET_API ServerSocket { | 17 class NET_API ServerSocket { |
| 18 public: | 18 public: |
| (...skipping 11 matching lines...) Expand all Loading... |
| 30 // accepted. | 30 // accepted. |
| 31 virtual int Accept(scoped_ptr<StreamSocket>* socket, | 31 virtual int Accept(scoped_ptr<StreamSocket>* socket, |
| 32 CompletionCallback* callback) = 0; | 32 CompletionCallback* callback) = 0; |
| 33 | 33 |
| 34 private: | 34 private: |
| 35 DISALLOW_COPY_AND_ASSIGN(ServerSocket); | 35 DISALLOW_COPY_AND_ASSIGN(ServerSocket); |
| 36 }; | 36 }; |
| 37 | 37 |
| 38 } // namespace net | 38 } // namespace net |
| 39 | 39 |
| 40 #endif // NET_SOCKET_TCP_SERVER_SOCKET_H_ | 40 #endif // NET_SOCKET_SERVER_SOCKET_H_ |
| OLD | NEW |