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

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

Issue 2453653002: Separate out observation sources as either HTTP layer or transport layer (Closed)
Patch Set: ps Created 4 years, 1 month 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 #ifndef NET_NQE_NETWORK_QUALITY_OBSERVATION_SOURCE_H_ 5 #ifndef NET_NQE_NETWORK_QUALITY_OBSERVATION_SOURCE_H_
6 #define NET_NQE_NETWORK_QUALITY_OBSERVATION_SOURCE_H_ 6 #define NET_NQE_NETWORK_QUALITY_OBSERVATION_SOURCE_H_
7 7
8 namespace net { 8 namespace net {
9 9
10 // On Android, a Java counterpart will be generated for this enum. 10 // On Android, a Java counterpart will be generated for this enum.
11 // GENERATED_JAVA_ENUM_PACKAGE: org.chromium.net 11 // GENERATED_JAVA_ENUM_PACKAGE: org.chromium.net
12 // GENERATED_JAVA_CLASS_NAME_OVERRIDE: NetworkQualityObservationSource 12 // GENERATED_JAVA_CLASS_NAME_OVERRIDE: NetworkQualityObservationSource
13 // GENERATED_JAVA_PREFIX_TO_STRIP: NETWORK_QUALITY_OBSERVATION_SOURCE_ 13 // GENERATED_JAVA_PREFIX_TO_STRIP: NETWORK_QUALITY_OBSERVATION_SOURCE_
14 enum NetworkQualityObservationSource { 14 enum NetworkQualityObservationSource {
15 // The observation was taken at the request layer, e.g., a round trip time 15 // The observation was taken at the request layer, e.g., a round trip time
16 // is recorded as the time between the request being sent and the first byte 16 // is recorded as the time between the request being sent and the first byte
17 // being received. 17 // being received.
18 NETWORK_QUALITY_OBSERVATION_SOURCE_URL_REQUEST = 0, 18 NETWORK_QUALITY_OBSERVATION_SOURCE_HTTP = 0,
19 19
20 // The observation is taken from TCP statistics maintained by the kernel. 20 // The observation is taken from TCP statistics maintained by the kernel.
21 NETWORK_QUALITY_OBSERVATION_SOURCE_TCP, 21 // This source is depecated and should not be used.
22 // DEPRECATED_NETWORK_QUALITY_OBSERVATION_SOURCE_TCP = 1,
bengr 2016/11/04 16:38:13 Why not just rename this as TRANSPORT? In general,
tbansal1 2016/11/04 20:11:20 I can do this. I just wanted to avoid confusion of
22 23
23 // The observation is taken at the QUIC layer. 24 // The observation is taken at the QUIC layer.
24 NETWORK_QUALITY_OBSERVATION_SOURCE_QUIC, 25 // This source is depecated and should not be used.
26 // DEPRECATED_NETWORK_QUALITY_OBSERVATION_SOURCE_QUIC = 2,
25 27
26 // The observation is a previously cached estimate of the metric. 28 // The observation is a previously cached estimate of the metric.
27 NETWORK_QUALITY_OBSERVATION_SOURCE_CACHED_ESTIMATE, 29 // This source is depecated and should not be used.
30 // DEPRECATED_NETWORK_QUALITY_OBSERVATION_SOURCE_CACHED_ESTIMATE = 3,
28 31
29 // The observation is derived from network connection information provided 32 // The observation is derived from network connection information provided
30 // by the platform. For example, typical RTT and throughput values are used 33 // by the platform. For example, typical RTT and throughput values are used
31 // for a given type of network connection. 34 // for a given type of network connection.
32 NETWORK_QUALITY_OBSERVATION_SOURCE_DEFAULT_FROM_PLATFORM, 35 // This source is depecated and should not be used.
36 // DEPRECATED_NETWORK_QUALITY_OBSERVATION_SOURCE_DEFAULT_FROM_PLATFORM = 4,
33 37
34 // The observation came from a Chromium-external source. 38 // The observation came from a Chromium-external source.
35 NETWORK_QUALITY_OBSERVATION_SOURCE_EXTERNAL_ESTIMATE, 39 // This source is depecated and should not be used.
40 // DEPRECATED_NETWORK_QUALITY_OBSERVATION_SOURCE_EXTERNAL_ESTIMATE = 5,
41
42 // The observation was taken at the transport layer from the UDP sockets (when
43 // using QUIC), or from the TCP sockets.
44 NETWORK_QUALITY_OBSERVATION_SOURCE_TRANSPORT = 6,
45
46 // The observation is a previously cached estimate of the metric. The metric
47 // was computed at the HTTP layer.
48 NETWORK_QUALITY_OBSERVATION_SOURCE_HTTP_CACHED_ESTIMATE = 7,
49
50 // The observation is a previously cached estimate of the metric. The metric
51 // was computed at the transport layer.
52 NETWORK_QUALITY_OBSERVATION_SOURCE_TRANSPORT_CACHED_ESTIMATE = 8,
53
54 // The observation is derived from the network connection information provided
55 // by the platform. For example, typical RTT and throughput values are used
56 // for a given type of network connection. The metric was provided for use
57 // at the HTTP layer.
58 NETWORK_QUALITY_OBSERVATION_SOURCE_DEFAULT_HTTP_FROM_PLATFORM = 9,
59
60 // The observation is derived from the network connection information provided
61 // by the platform. For example, typical RTT and throughput values are used
62 // for a given type of network connection. The metric was provided for use
63 // at the transport layer.
64 NETWORK_QUALITY_OBSERVATION_SOURCE_DEFAULT_TRANSPORT_FROM_PLATFORM = 10,
65
66 // The observation came from a Chromium-external source. The metric was
67 // computed by the external source at the HTTP layer.
68 NETWORK_QUALITY_OBSERVATION_SOURCE_HTTP_EXTERNAL_ESTIMATE = 11,
36 69
37 NETWORK_QUALITY_OBSERVATION_SOURCE_MAX, 70 NETWORK_QUALITY_OBSERVATION_SOURCE_MAX,
38 }; 71 };
39 72
40 } // namespace net 73 } // namespace net
41 74
42 #endif // NET_NQE_NETWORK_QUALITY_OBSERVATION_SOURCE_H_ 75 #endif // NET_NQE_NETWORK_QUALITY_OBSERVATION_SOURCE_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698