| Index: net/quic/quic_server_id.cc
|
| diff --git a/net/quic/quic_server_id.cc b/net/quic/quic_server_id.cc
|
| index ff870997df7003f2e7969de518c972efda667a77..4de24da841cab4dd135538a2837f1a99ee7ec961 100644
|
| --- a/net/quic/quic_server_id.cc
|
| +++ b/net/quic/quic_server_id.cc
|
| @@ -8,21 +8,22 @@ using std::string;
|
|
|
| namespace net {
|
|
|
| -QuicServerId::QuicServerId() {}
|
| +QuicServerId::QuicServerId() {
|
| +}
|
|
|
| QuicServerId::QuicServerId(const HostPortPair& host_port_pair,
|
| bool is_https,
|
| PrivacyMode privacy_mode)
|
| : host_port_pair_(host_port_pair),
|
| is_https_(is_https),
|
| - privacy_mode_(privacy_mode) {}
|
| + privacy_mode_(privacy_mode) {
|
| +}
|
|
|
| -QuicServerId::QuicServerId(const string& host,
|
| - uint16 port,
|
| - bool is_https)
|
| +QuicServerId::QuicServerId(const string& host, uint16 port, bool is_https)
|
| : host_port_pair_(host, port),
|
| is_https_(is_https),
|
| - privacy_mode_(PRIVACY_MODE_DISABLED) {}
|
| + privacy_mode_(PRIVACY_MODE_DISABLED) {
|
| +}
|
|
|
| QuicServerId::QuicServerId(const string& host,
|
| uint16 port,
|
| @@ -30,9 +31,11 @@ QuicServerId::QuicServerId(const string& host,
|
| PrivacyMode privacy_mode)
|
| : host_port_pair_(host, port),
|
| is_https_(is_https),
|
| - privacy_mode_(privacy_mode) {}
|
| + privacy_mode_(privacy_mode) {
|
| +}
|
|
|
| -QuicServerId::~QuicServerId() {}
|
| +QuicServerId::~QuicServerId() {
|
| +}
|
|
|
| bool QuicServerId::operator<(const QuicServerId& other) const {
|
| if (!host_port_pair_.Equals(other.host_port_pair_)) {
|
| @@ -45,14 +48,13 @@ bool QuicServerId::operator<(const QuicServerId& other) const {
|
| }
|
|
|
| bool QuicServerId::operator==(const QuicServerId& other) const {
|
| - return is_https_ == other.is_https_ &&
|
| - privacy_mode_ == other.privacy_mode_ &&
|
| - host_port_pair_.Equals(other.host_port_pair_);
|
| + return is_https_ == other.is_https_ && privacy_mode_ == other.privacy_mode_ &&
|
| + host_port_pair_.Equals(other.host_port_pair_);
|
| }
|
|
|
| string QuicServerId::ToString() const {
|
| return (is_https_ ? "https://" : "http://") + host_port_pair_.ToString() +
|
| - (privacy_mode_ == PRIVACY_MODE_ENABLED ? "/private" : "");
|
| + (privacy_mode_ == PRIVACY_MODE_ENABLED ? "/private" : "");
|
| }
|
|
|
| } // namespace net
|
|
|