| 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 #include "net/quic/quic_session_key.h" | 5 #include "net/quic/quic_session_key.h" |
| 6 | 6 |
| 7 using std::string; | 7 using std::string; |
| 8 | 8 |
| 9 namespace net { | 9 namespace net { |
| 10 | 10 |
| (...skipping 27 matching lines...) Expand all Loading... |
| 38 } | 38 } |
| 39 | 39 |
| 40 bool QuicSessionKey::operator==(const QuicSessionKey& other) const { | 40 bool QuicSessionKey::operator==(const QuicSessionKey& other) const { |
| 41 return is_https_ == other.is_https_ && | 41 return is_https_ == other.is_https_ && |
| 42 privacy_mode_ == other.privacy_mode_ && | 42 privacy_mode_ == other.privacy_mode_ && |
| 43 host_port_pair_.Equals(other.host_port_pair_); | 43 host_port_pair_.Equals(other.host_port_pair_); |
| 44 } | 44 } |
| 45 | 45 |
| 46 string QuicSessionKey::ToString() const { | 46 string QuicSessionKey::ToString() const { |
| 47 return (is_https_ ? "https://" : "http://") + host_port_pair_.ToString() + | 47 return (is_https_ ? "https://" : "http://") + host_port_pair_.ToString() + |
| 48 (privacy_mode_ == PRIVACY_MODE_ENABLED ? "/private" : ""); | 48 (privacy_mode_ == kPrivacyModeEnabled ? "/private" : ""); |
| 49 } | 49 } |
| 50 | 50 |
| 51 } // namespace net | 51 } // namespace net |
| OLD | NEW |