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

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: Created 4 years, 8 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
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..d7b3089d2ef84a07e08afeb753cc753b5d23b92f
--- /dev/null
+++ b/net/nqe/network_quality_observation_source.h
@@ -0,0 +1,35 @@
+// 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.
bengr 2016/05/03 21:59:45 Can the generator handle blank lines? If so I'd ad
tbansal1 2016/05/04 22:07:24 Done.
+// 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_

Powered by Google App Engine
This is Rietveld 408576698