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

Side by Side Diff: net/quic/core/quic_server_id.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
OLDNEW
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_QUIC_CORE_QUIC_SERVER_ID_H_ 5 #ifndef NET_QUIC_CORE_QUIC_SERVER_ID_H_
6 #define NET_QUIC_CORE_QUIC_SERVER_ID_H_ 6 #define NET_QUIC_CORE_QUIC_SERVER_ID_H_
7 7
8 #include <stdint.h> 8 #include <stdint.h>
9 9
10 #include <string> 10 #include <string>
11 11
12 #include "net/base/host_port_pair.h" 12 #include "net/base/host_port_pair.h"
13 #include "net/base/net_export.h"
14 #include "net/base/privacy_mode.h" 13 #include "net/base/privacy_mode.h"
14 #include "net/quic/platform/api/quic_export.h"
15 15
16 namespace net { 16 namespace net {
17 17
18 // The id used to identify sessions. Includes the hostname, port, scheme and 18 // The id used to identify sessions. Includes the hostname, port, scheme and
19 // privacy_mode. 19 // privacy_mode.
20 class NET_EXPORT_PRIVATE QuicServerId { 20 class QUIC_EXPORT_PRIVATE QuicServerId {
21 public: 21 public:
22 QuicServerId(); 22 QuicServerId();
23 QuicServerId(const HostPortPair& host_port_pair, PrivacyMode privacy_mode); 23 QuicServerId(const HostPortPair& host_port_pair, PrivacyMode privacy_mode);
24 QuicServerId(const std::string& host, uint16_t port); 24 QuicServerId(const std::string& host, uint16_t port);
25 QuicServerId(const std::string& host, 25 QuicServerId(const std::string& host,
26 uint16_t port, 26 uint16_t port,
27 PrivacyMode privacy_mode); 27 PrivacyMode privacy_mode);
28 ~QuicServerId(); 28 ~QuicServerId();
29 29
30 // Needed to be an element of std::set. 30 // Needed to be an element of std::set.
(...skipping 18 matching lines...) Expand all
49 PrivacyMode privacy_mode() const { return privacy_mode_; } 49 PrivacyMode privacy_mode() const { return privacy_mode_; }
50 50
51 private: 51 private:
52 HostPortPair host_port_pair_; 52 HostPortPair host_port_pair_;
53 PrivacyMode privacy_mode_; 53 PrivacyMode privacy_mode_;
54 }; 54 };
55 55
56 } // namespace net 56 } // namespace net
57 57
58 #endif // NET_QUIC_CORE_QUIC_SERVER_ID_H_ 58 #endif // NET_QUIC_CORE_QUIC_SERVER_ID_H_
OLDNEW
« no previous file with comments | « net/quic/core/quic_sent_packet_manager_interface.h ('k') | net/quic/core/quic_server_session_base.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698