OLD | NEW |
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 #ifndef NET_SOCKET_SOCKET_POSIX_H_ | 5 #ifndef NET_SOCKET_SOCKET_POSIX_H_ |
6 #define NET_SOCKET_SOCKET_POSIX_H_ | 6 #define NET_SOCKET_SOCKET_POSIX_H_ |
7 | 7 |
8 #include <memory> | 8 #include <memory> |
9 | 9 |
10 #include "base/compiler_specific.h" | 10 #include "base/compiler_specific.h" |
11 #include "base/macros.h" | 11 #include "base/macros.h" |
12 #include "base/memory/ref_counted.h" | 12 #include "base/memory/ref_counted.h" |
13 #include "base/message_loop/message_loop.h" | 13 #include "base/message_loop/message_loop.h" |
14 #include "base/threading/thread_checker.h" | 14 #include "base/threading/thread_checker.h" |
15 #include "net/base/completion_callback.h" | 15 #include "net/base/completion_callback.h" |
| 16 #include "net/base/net_export.h" |
16 #include "net/socket/socket_descriptor.h" | 17 #include "net/socket/socket_descriptor.h" |
17 | 18 |
18 namespace net { | 19 namespace net { |
19 | 20 |
20 class IOBuffer; | 21 class IOBuffer; |
21 class IPEndPoint; | 22 class IPEndPoint; |
22 struct SockaddrStorage; | 23 struct SockaddrStorage; |
23 | 24 |
24 // Socket class to provide asynchronous read/write operations on top of the | 25 // Socket class to provide asynchronous read/write operations on top of the |
25 // posix socket api. It supports AF_INET, AF_INET6, and AF_UNIX addresses. | 26 // posix socket api. It supports AF_INET, AF_INET6, and AF_UNIX addresses. |
(...skipping 101 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
127 std::unique_ptr<SockaddrStorage> peer_address_; | 128 std::unique_ptr<SockaddrStorage> peer_address_; |
128 | 129 |
129 base::ThreadChecker thread_checker_; | 130 base::ThreadChecker thread_checker_; |
130 | 131 |
131 DISALLOW_COPY_AND_ASSIGN(SocketPosix); | 132 DISALLOW_COPY_AND_ASSIGN(SocketPosix); |
132 }; | 133 }; |
133 | 134 |
134 } // namespace net | 135 } // namespace net |
135 | 136 |
136 #endif // NET_SOCKET_SOCKET_POSIX_H_ | 137 #endif // NET_SOCKET_SOCKET_POSIX_H_ |
OLD | NEW |