Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(351)

Side by Side Diff: net/quic/crypto/cached_network_parameters.cc

Issue 822713002: Update from https://crrev.com/309415 (Closed) Base URL: https://github.com/domokit/mojo.git@master
Patch Set: Created 5 years, 12 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
1 // Copyright (c) 2014 The Chromium Authors. All rights reserved. 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 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/crypto/cached_network_parameters.h" 5 #include "net/quic/crypto/cached_network_parameters.h"
6 6
7 namespace net { 7 namespace net {
8 8
9 CachedNetworkParameters::CachedNetworkParameters() 9 CachedNetworkParameters::CachedNetworkParameters()
10 : bandwidth_estimate_bytes_per_second_(0), 10 : bandwidth_estimate_bytes_per_second_(0),
11 max_bandwidth_estimate_bytes_per_second_(0), 11 max_bandwidth_estimate_bytes_per_second_(0),
12 max_bandwidth_timestamp_seconds_(0), 12 max_bandwidth_timestamp_seconds_(0),
13 min_rtt_ms_(0), 13 min_rtt_ms_(0),
14 has_min_rtt_ms_(false),
14 previous_connection_state_(0), 15 previous_connection_state_(0),
15 timestamp_(0) { 16 timestamp_(0) {
16 } 17 }
17 18
18 CachedNetworkParameters::~CachedNetworkParameters() { 19 CachedNetworkParameters::~CachedNetworkParameters() {
19 } 20 }
20 21
21 bool CachedNetworkParameters::operator==( 22 bool CachedNetworkParameters::operator==(
22 const CachedNetworkParameters& other) const { 23 const CachedNetworkParameters& other) const {
23 return serving_region_ == other.serving_region_ && 24 return serving_region_ == other.serving_region_ &&
24 bandwidth_estimate_bytes_per_second_ == 25 bandwidth_estimate_bytes_per_second_ ==
25 other.bandwidth_estimate_bytes_per_second_ && 26 other.bandwidth_estimate_bytes_per_second_ &&
26 max_bandwidth_estimate_bytes_per_second_ == 27 max_bandwidth_estimate_bytes_per_second_ ==
27 other.max_bandwidth_estimate_bytes_per_second_ && 28 other.max_bandwidth_estimate_bytes_per_second_ &&
28 max_bandwidth_timestamp_seconds_ == 29 max_bandwidth_timestamp_seconds_ ==
29 other.max_bandwidth_timestamp_seconds_ && 30 other.max_bandwidth_timestamp_seconds_ &&
30 min_rtt_ms_ == other.min_rtt_ms_ && 31 min_rtt_ms_ == other.min_rtt_ms_ &&
31 previous_connection_state_ == other.previous_connection_state_ && 32 previous_connection_state_ == other.previous_connection_state_ &&
32 timestamp_ == other.timestamp_; 33 timestamp_ == other.timestamp_;
33 } 34 }
34 35
35 bool CachedNetworkParameters::operator!=( 36 bool CachedNetworkParameters::operator!=(
36 const CachedNetworkParameters& other) const { 37 const CachedNetworkParameters& other) const {
37 return !(*this == other); 38 return !(*this == other);
38 } 39 }
39 40
40 } // namespace net 41 } // namespace net
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698