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

Side by Side Diff: net/nqe/network_quality_estimator_util.h

Issue 2936823002: NQE: Exclude network observations from private networks (Closed)
Patch Set: ps Created 3 years, 6 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
(Empty)
1 // Copyright 2017 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 #ifndef NET_NQE_NETWORK_QUALITY_ESTIMATOR_UTIL_H_
6 #define NET_NQE_NETWORK_QUALITY_ESTIMATOR_UTIL_H_
7
8 #include "net/base/net_export.h"
9
10 namespace net {
11
12 class HostPortPair;
13 class HostResolver;
14 class NetLogWithSource;
15
16 namespace nqe {
17
18 namespace internal {
19
20 // Returns true if the host contained in |host_port_pair| is a host in a
21 // private Internet as defined by RFC 1918. IsPrivateHost() makes the best
bengr 2017/06/13 20:35:36 Add to the comment that these are hosts with IP ad
mmenke 2017/06/14 18:23:31 This is actually not what the method is doing. IP
tbansal1 2017/06/16 00:57:42 Right. I have added few more comments to the metho
22 // effort estimate including trying to resolve the host in the
23 // |host_port_pair|. The method is synchronous.
24 NET_EXPORT_PRIVATE bool IsPrivateHost(HostResolver* host_resolver,
bengr 2017/06/13 20:35:36 This seems like something more generic than nqe. P
tbansal1 2017/06/16 00:57:42 We can think about moving it to a more common plac
25 const HostPortPair& host_port_pair,
26 const NetLogWithSource& net_log);
27
28 } // namespace internal
29
30 } // namespace nqe
31
32 } // namespace net
33
34 #endif // NET_NQE_NETWORK_QUALITY_ESTIMATOR_UTIL_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698