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

Unified Diff: net/nqe/effective_connection_type.h

Issue 2183153002: NQE: Move ECT to net:: namespace (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Rebased, also fixed comnpilation error Created 4 years, 5 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/net.gypi ('k') | net/nqe/network_quality_estimator.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: net/nqe/effective_connection_type.h
diff --git a/net/nqe/effective_connection_type.h b/net/nqe/effective_connection_type.h
new file mode 100644
index 0000000000000000000000000000000000000000..6160a4d69bd6756a39c13070ec2ae181f8c33efe
--- /dev/null
+++ b/net/nqe/effective_connection_type.h
@@ -0,0 +1,32 @@
+// 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_EFFECTIVE_CONNECTION_TYPE_H_
+#define NET_NQE_EFFECTIVE_CONNECTION_TYPE_H_
+
+namespace net {
+
+// EffectiveConnectionType is the connection type whose typical performance is
+// most similar to the measured performance of the network in use. In many
+// cases, the "effective" connection type and the actual type of connection in
+// use are the same, but often a network connection performs significantly
+// differently, usually worse, from its expected capabilities.
+// EffectiveConnectionType of a network is independent of if the current
+// connection is metered or not. For example, an unmetered slow connection may
+// have EFFECTIVE_CONNECTION_TYPE_SLOW_2G as its effective connection type.
+enum EffectiveConnectionType {
+ // The connection types should be in increasing order of quality.
+ EFFECTIVE_CONNECTION_TYPE_UNKNOWN = 0,
+ EFFECTIVE_CONNECTION_TYPE_OFFLINE,
+ EFFECTIVE_CONNECTION_TYPE_SLOW_2G,
+ EFFECTIVE_CONNECTION_TYPE_2G,
+ EFFECTIVE_CONNECTION_TYPE_3G,
+ EFFECTIVE_CONNECTION_TYPE_4G,
+ EFFECTIVE_CONNECTION_TYPE_BROADBAND,
+ EFFECTIVE_CONNECTION_TYPE_LAST,
+};
+
+} // namespace net
+
+#endif // NET_NQE_EFFECTIVE_CONNECTION_TYPE_H_
« no previous file with comments | « net/net.gypi ('k') | net/nqe/network_quality_estimator.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698