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/chromium/spdy_session_key.h" |
6 | 6 |
7 #include <tuple> | 7 #include <tuple> |
8 | 8 |
9 #include "base/logging.h" | 9 #include "base/logging.h" |
10 #include "net/base/host_port_pair.h" | 10 #include "net/base/host_port_pair.h" |
11 #include "net/spdy/platform/api/spdy_estimate_memory_usage.h" | 11 #include "net/spdy/platform/api/spdy_estimate_memory_usage.h" |
12 | 12 |
13 namespace net { | 13 namespace net { |
14 | 14 |
15 SpdySessionKey::SpdySessionKey() : privacy_mode_(PRIVACY_MODE_DISABLED) { | 15 SpdySessionKey::SpdySessionKey() : privacy_mode_(PRIVACY_MODE_DISABLED) { |
(...skipping 33 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
49 return privacy_mode_ == other.privacy_mode_ && | 49 return privacy_mode_ == other.privacy_mode_ && |
50 host_port_proxy_pair_.first.Equals(other.host_port_proxy_pair_.first) && | 50 host_port_proxy_pair_.first.Equals(other.host_port_proxy_pair_.first) && |
51 host_port_proxy_pair_.second == other.host_port_proxy_pair_.second; | 51 host_port_proxy_pair_.second == other.host_port_proxy_pair_.second; |
52 } | 52 } |
53 | 53 |
54 size_t SpdySessionKey::EstimateMemoryUsage() const { | 54 size_t SpdySessionKey::EstimateMemoryUsage() const { |
55 return SpdyEstimateMemoryUsage(host_port_proxy_pair_); | 55 return SpdyEstimateMemoryUsage(host_port_proxy_pair_); |
56 } | 56 } |
57 | 57 |
58 } // namespace net | 58 } // namespace net |
OLD | NEW |