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

Unified Diff: net/nqe/network_quality_observation_source.h

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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « net/nqe/network_quality_observation.h ('k') | net/nqe/network_quality_observation_unittest.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: net/nqe/network_quality_observation_source.h
diff --git a/net/nqe/network_quality_observation_source.h b/net/nqe/network_quality_observation_source.h
new file mode 100644
index 0000000000000000000000000000000000000000..da64c6766d18fef192d18d2911bfcb5bf21a564f
--- /dev/null
+++ b/net/nqe/network_quality_observation_source.h
@@ -0,0 +1,40 @@
+// Copyright 2016 The Chromium Authors. All rights reserved.
+// Use of this source code is governed by a BSD-style license that can be
+// found in the LICENSE file.
+
+#ifndef NET_NQE_NETWORK_QUALITY_OBSERVATION_SOURCE_H_
+#define NET_NQE_NETWORK_QUALITY_OBSERVATION_SOURCE_H_
+
+namespace net {
+
+// On Android, a Java counterpart will be generated for this enum.
+// GENERATED_JAVA_ENUM_PACKAGE: org.chromium.net
+// GENERATED_JAVA_CLASS_NAME_OVERRIDE: NetworkQualityObservationSource
+// GENERATED_JAVA_PREFIX_TO_STRIP: NETWORK_QUALITY_OBSERVATION_SOURCE_
+enum NetworkQualityObservationSource {
+ // The observation was taken at the request layer, e.g., a round trip time
+ // is recorded as the time between the request being sent and the first byte
+ // being received.
+ NETWORK_QUALITY_OBSERVATION_SOURCE_URL_REQUEST = 0,
+
+ // The observation is taken from TCP statistics maintained by the kernel.
+ NETWORK_QUALITY_OBSERVATION_SOURCE_TCP,
+
+ // The observation is taken at the QUIC layer.
+ NETWORK_QUALITY_OBSERVATION_SOURCE_QUIC,
+
+ // The observation is a previously cached estimate of the metric.
+ NETWORK_QUALITY_OBSERVATION_SOURCE_CACHED_ESTIMATE,
+
+ // The observation is derived from network connection information provided
+ // by the platform. For example, typical RTT and throughput values are used
+ // for a given type of network connection.
+ NETWORK_QUALITY_OBSERVATION_SOURCE_DEFAULT_FROM_PLATFORM,
+
+ // The observation came from a Chromium-external source.
+ NETWORK_QUALITY_OBSERVATION_SOURCE_EXTERNAL_ESTIMATE
+};
+
+} // namespace net
+
+#endif // NET_NQE_NETWORK_QUALITY_OBSERVATION_SOURCE_H_
« no previous file with comments | « net/nqe/network_quality_observation.h ('k') | net/nqe/network_quality_observation_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698