OLD | NEW |
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2012 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/spdy/spdy_session_key.h" | 5 #include "net/spdy/spdy_session_key.h" |
6 | 6 |
7 #include "base/logging.h" | 7 #include "base/logging.h" |
8 | 8 |
9 namespace net { | 9 namespace net { |
10 | 10 |
11 SpdySessionKey::SpdySessionKey() : privacy_mode_(PRIVACY_MODE_DISABLED) { | 11 SpdySessionKey::SpdySessionKey() : privacy_mode_(kPrivacyModeDisabled) { |
12 } | 12 } |
13 | 13 |
14 SpdySessionKey::SpdySessionKey(const HostPortPair& host_port_pair, | 14 SpdySessionKey::SpdySessionKey(const HostPortPair& host_port_pair, |
15 const ProxyServer& proxy_server, | 15 const ProxyServer& proxy_server, |
16 PrivacyMode privacy_mode) | 16 PrivacyMode privacy_mode) |
17 : host_port_proxy_pair_(host_port_pair, proxy_server), | 17 : host_port_proxy_pair_(host_port_pair, proxy_server), |
18 privacy_mode_(privacy_mode) { | 18 privacy_mode_(privacy_mode) { |
19 DVLOG(1) << "SpdySessionKey(host=" << host_port_pair.ToString() | 19 DVLOG(1) << "SpdySessionKey(host=" << host_port_pair.ToString() |
20 << ", proxy=" << proxy_server.ToURI() | 20 << ", proxy=" << proxy_server.ToURI() |
21 << ", privacy=" << privacy_mode; | 21 << ", privacy=" << privacy_mode; |
(...skipping 19 matching lines...) Expand all Loading... |
41 } | 41 } |
42 | 42 |
43 bool SpdySessionKey::Equals(const SpdySessionKey& other) const { | 43 bool SpdySessionKey::Equals(const SpdySessionKey& other) const { |
44 return privacy_mode_ == other.privacy_mode_ && | 44 return privacy_mode_ == other.privacy_mode_ && |
45 host_port_proxy_pair_.first.Equals(other.host_port_proxy_pair_.first) && | 45 host_port_proxy_pair_.first.Equals(other.host_port_proxy_pair_.first) && |
46 host_port_proxy_pair_.second == other.host_port_proxy_pair_.second; | 46 host_port_proxy_pair_.second == other.host_port_proxy_pair_.second; |
47 } | 47 } |
48 | 48 |
49 } // namespace net | 49 } // namespace net |
50 | 50 |
OLD | NEW |