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

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

Issue 1942893002: Split NQE to multiple files (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Rebased Created 4 years, 7 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
« no previous file with comments | « net/nqe/cached_network_quality.h ('k') | net/nqe/network_quality.h » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
(Empty)
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
3 // found in the LICENSE file.
4
5 #include "net/nqe/cached_network_quality.h"
6
7 namespace net {
8
9 namespace nqe {
10
11 namespace internal {
12
13 CachedNetworkQuality::CachedNetworkQuality(
14 const NetworkQuality& network_quality)
15 : last_update_time_(base::TimeTicks::Now()),
16 network_quality_(network_quality) {}
17
18 CachedNetworkQuality::CachedNetworkQuality(const CachedNetworkQuality& other)
19 : last_update_time_(other.last_update_time_),
20 network_quality_(other.network_quality_) {}
21
22 CachedNetworkQuality::~CachedNetworkQuality() {}
23
24 bool CachedNetworkQuality::OlderThan(
25 const CachedNetworkQuality& cached_network_quality) const {
26 return last_update_time_ < cached_network_quality.last_update_time_;
27 }
28
29 } // namespace internal
30
31 } // namespace nqe
32
33 } // namespace net
OLDNEW
« no previous file with comments | « net/nqe/cached_network_quality.h ('k') | net/nqe/network_quality.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698