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

Side by Side Diff: net/nqe/network_quality.cc

Issue 2128793003: Factor out NetworkID and caching mechanism from n_q_e.{h,cc} (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: bengr comments Created 4 years, 5 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 2016 The Chromium Authors. All rights reserved. 1 // Copyright 2016 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/nqe/network_quality.h" 5 #include "net/nqe/network_quality.h"
6 6
7 namespace net { 7 namespace net {
8 8
9 namespace nqe { 9 namespace nqe {
10 10
(...skipping 22 matching lines...) Expand all
33 33
34 NetworkQuality::~NetworkQuality() {} 34 NetworkQuality::~NetworkQuality() {}
35 35
36 NetworkQuality& NetworkQuality::operator=(const NetworkQuality& other) { 36 NetworkQuality& NetworkQuality::operator=(const NetworkQuality& other) {
37 http_rtt_ = other.http_rtt_; 37 http_rtt_ = other.http_rtt_;
38 transport_rtt_ = other.transport_rtt_; 38 transport_rtt_ = other.transport_rtt_;
39 downstream_throughput_kbps_ = other.downstream_throughput_kbps_; 39 downstream_throughput_kbps_ = other.downstream_throughput_kbps_;
40 return *this; 40 return *this;
41 } 41 }
42 42
43 bool NetworkQuality::operator==(const NetworkQuality& other) const {
44 return http_rtt_ == other.http_rtt_ &&
45 transport_rtt_ == other.transport_rtt_ &&
46 downstream_throughput_kbps_ == other.downstream_throughput_kbps_;
47 }
48
43 } // namespace internal 49 } // namespace internal
44 50
45 } // namespace nqe 51 } // namespace nqe
46 52
47 } // namespace net 53 } // namespace net
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698