OLD | NEW |
1 // Copyright (c) 2016 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2016 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_QUIC_PLATFORM_IMPL_QUIC_SOCKET_ADDRESS_IMPL_H_ | 5 #ifndef NET_QUIC_PLATFORM_IMPL_QUIC_SOCKET_ADDRESS_IMPL_H_ |
6 #define NET_QUIC_PLATFORM_IMPL_QUIC_SOCKET_ADDRESS_IMPL_H_ | 6 #define NET_QUIC_PLATFORM_IMPL_QUIC_SOCKET_ADDRESS_IMPL_H_ |
7 | 7 |
8 #include "net/base/ip_endpoint.h" | 8 #include "net/base/ip_endpoint.h" |
| 9 #include "net/quic/platform/api/quic_export.h" |
9 #include "net/quic/platform/impl/quic_ip_address_impl.h" | 10 #include "net/quic/platform/impl/quic_ip_address_impl.h" |
10 | 11 |
11 namespace net { | 12 namespace net { |
12 | 13 |
13 class NET_EXPORT_PRIVATE QuicSocketAddressImpl { | 14 class QUIC_EXPORT_PRIVATE QuicSocketAddressImpl { |
14 public: | 15 public: |
15 QuicSocketAddressImpl() = default; | 16 QuicSocketAddressImpl() = default; |
16 explicit QuicSocketAddressImpl(IPEndPoint addr); | 17 explicit QuicSocketAddressImpl(IPEndPoint addr); |
17 QuicSocketAddressImpl(QuicIpAddressImpl address, uint16_t port); | 18 QuicSocketAddressImpl(QuicIpAddressImpl address, uint16_t port); |
18 explicit QuicSocketAddressImpl(const struct sockaddr_storage& saddr); | 19 explicit QuicSocketAddressImpl(const struct sockaddr_storage& saddr); |
19 explicit QuicSocketAddressImpl(const struct sockaddr& saddr); | 20 explicit QuicSocketAddressImpl(const struct sockaddr& saddr); |
20 QuicSocketAddressImpl(const QuicSocketAddressImpl& other) = default; | 21 QuicSocketAddressImpl(const QuicSocketAddressImpl& other) = default; |
21 QuicSocketAddressImpl& operator=(const QuicSocketAddressImpl& other) = | 22 QuicSocketAddressImpl& operator=(const QuicSocketAddressImpl& other) = |
22 default; | 23 default; |
23 QuicSocketAddressImpl& operator=(QuicSocketAddressImpl&& other) = default; | 24 QuicSocketAddressImpl& operator=(QuicSocketAddressImpl&& other) = default; |
(...skipping 12 matching lines...) Expand all Loading... |
36 sockaddr_storage generic_address() const; | 37 sockaddr_storage generic_address() const; |
37 const IPEndPoint& socket_address() const { return socket_address_; } | 38 const IPEndPoint& socket_address() const { return socket_address_; } |
38 | 39 |
39 private: | 40 private: |
40 IPEndPoint socket_address_; | 41 IPEndPoint socket_address_; |
41 }; | 42 }; |
42 | 43 |
43 } // namespace net | 44 } // namespace net |
44 | 45 |
45 #endif // NET_QUIC_PLATFORM_IMPL_QUIC_SOCKET_ADDRESS_IMPL_H_ | 46 #endif // NET_QUIC_PLATFORM_IMPL_QUIC_SOCKET_ADDRESS_IMPL_H_ |
OLD | NEW |