Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(678)

Side by Side Diff: net/quic/platform/impl/quic_socket_address_impl.h

Issue 2561893002: Add QUIC_EXPORT macros (Closed)
Patch Set: More Created 4 years ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
« no previous file with comments | « net/quic/platform/impl/quic_ip_address_impl.h ('k') | net/quic/quartc/quartc_alarm_factory.h » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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
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_
OLDNEW
« no previous file with comments | « net/quic/platform/impl/quic_ip_address_impl.h ('k') | net/quic/quartc/quartc_alarm_factory.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698