Explicitly add python-numpy dependency to install-build-deps.
[chromium-blink-merge.git] / net / quic / crypto / cached_network_parameters.cc
blob20a438b7a191ea91ffbbf3e89f120e335d6369ec
1 // Copyright (c) 2014 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file.
5 #include "net/quic/crypto/cached_network_parameters.h"
7 namespace net {
9 CachedNetworkParameters::CachedNetworkParameters()
10 : bandwidth_estimate_bytes_per_second_(0),
11 max_bandwidth_estimate_bytes_per_second_(0),
12 max_bandwidth_timestamp_seconds_(0),
13 min_rtt_ms_(0),
14 previous_connection_state_(0),
15 timestamp_(0) {
18 CachedNetworkParameters::~CachedNetworkParameters() {
21 bool CachedNetworkParameters::operator==(
22 const CachedNetworkParameters& other) const {
23 return serving_region_ == other.serving_region_ &&
24 bandwidth_estimate_bytes_per_second_ ==
25 other.bandwidth_estimate_bytes_per_second_ &&
26 max_bandwidth_estimate_bytes_per_second_ ==
27 other.max_bandwidth_estimate_bytes_per_second_ &&
28 max_bandwidth_timestamp_seconds_ ==
29 other.max_bandwidth_timestamp_seconds_ &&
30 min_rtt_ms_ == other.min_rtt_ms_ &&
31 previous_connection_state_ == other.previous_connection_state_ &&
32 timestamp_ == other.timestamp_;
35 bool CachedNetworkParameters::operator!=(
36 const CachedNetworkParameters& other) const {
37 return !(*this == other);
40 } // namespace net