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_WIN_H_ | 5 #ifndef NET_SOCKET_TCP_SERVER_SOCKET_WIN_H_ |
6 #define NET_SOCKET_TCP_SERVER_SOCKET_WIN_H_ | 6 #define NET_SOCKET_TCP_SERVER_SOCKET_WIN_H_ |
7 | 7 |
8 #include <winsock2.h> | 8 #include <winsock2.h> |
9 | 9 |
10 #include "base/memory/scoped_ptr.h" | 10 #include "base/memory/scoped_ptr.h" |
11 #include "base/message_loop.h" | 11 #include "base/message_loop/message_loop.h" |
| 12 #include "base/threading/non_thread_safe.h" |
12 #include "base/win/object_watcher.h" | 13 #include "base/win/object_watcher.h" |
13 #include "base/threading/non_thread_safe.h" | |
14 #include "net/base/completion_callback.h" | 14 #include "net/base/completion_callback.h" |
15 #include "net/base/net_log.h" | 15 #include "net/base/net_log.h" |
16 #include "net/socket/server_socket.h" | 16 #include "net/socket/server_socket.h" |
17 | 17 |
18 namespace net { | 18 namespace net { |
19 | 19 |
20 class IPEndPoint; | 20 class IPEndPoint; |
21 | 21 |
22 class NET_EXPORT_PRIVATE TCPServerSocketWin | 22 class NET_EXPORT_PRIVATE TCPServerSocketWin |
23 : public ServerSocket, | 23 : public ServerSocket, |
(...skipping 25 matching lines...) Expand all Loading... |
49 | 49 |
50 scoped_ptr<StreamSocket>* accept_socket_; | 50 scoped_ptr<StreamSocket>* accept_socket_; |
51 CompletionCallback accept_callback_; | 51 CompletionCallback accept_callback_; |
52 | 52 |
53 BoundNetLog net_log_; | 53 BoundNetLog net_log_; |
54 }; | 54 }; |
55 | 55 |
56 } // namespace net | 56 } // namespace net |
57 | 57 |
58 #endif // NET_SOCKET_TCP_SERVER_SOCKET_WIN_H_ | 58 #endif // NET_SOCKET_TCP_SERVER_SOCKET_WIN_H_ |
OLD | NEW |