| 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_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> |
| (...skipping 26 matching lines...) Expand all Loading... |
| 37 | 37 |
| 38 // Used in Chromium, but not internally. | 38 // Used in Chromium, but not internally. |
| 39 const HostPortPair& host_port_pair() const { return host_port_pair_; } | 39 const HostPortPair& host_port_pair() const { return host_port_pair_; } |
| 40 | 40 |
| 41 const std::string& host() const { return host_port_pair_.host(); } | 41 const std::string& host() const { return host_port_pair_.host(); } |
| 42 | 42 |
| 43 uint16_t port() const { return host_port_pair_.port(); } | 43 uint16_t port() const { return host_port_pair_.port(); } |
| 44 | 44 |
| 45 PrivacyMode privacy_mode() const { return privacy_mode_; } | 45 PrivacyMode privacy_mode() const { return privacy_mode_; } |
| 46 | 46 |
| 47 size_t EstimateMemoryUsage() const; |
| 48 |
| 47 private: | 49 private: |
| 48 HostPortPair host_port_pair_; | 50 HostPortPair host_port_pair_; |
| 49 PrivacyMode privacy_mode_; | 51 PrivacyMode privacy_mode_; |
| 50 }; | 52 }; |
| 51 | 53 |
| 52 } // namespace net | 54 } // namespace net |
| 53 | 55 |
| 54 #endif // NET_QUIC_CORE_QUIC_SERVER_ID_H_ | 56 #endif // NET_QUIC_CORE_QUIC_SERVER_ID_H_ |
| OLD | NEW |