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

Unified Diff: net/nqe/effective_connection_type.h

Issue 2223773003: Expose effective connection type to Cronet (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Addressed comments Created 4 years, 4 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/effective_connection_type.h
diff --git a/net/nqe/effective_connection_type.h b/net/nqe/effective_connection_type.h
index 6160a4d69bd6756a39c13070ec2ae181f8c33efe..dcd9f532f371d182f85f7f10b27cf218453217b5 100644
--- a/net/nqe/effective_connection_type.h
+++ b/net/nqe/effective_connection_type.h
@@ -15,6 +15,11 @@ namespace net {
// 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.
+// An invalid Java prefix to strip is specified to prevent the Java class
+// generator from automatically stripping off the common prefix
+// ("EFFECTIVE_CONNECTION_TYPE_").
+// GENERATED_JAVA_ENUM_PACKAGE: org.chromium.net
+// GENERATED_JAVA_PREFIX_TO_STRIP: PREFIX_NOT_PRESENT_
enum EffectiveConnectionType {
// The connection types should be in increasing order of quality.
EFFECTIVE_CONNECTION_TYPE_UNKNOWN = 0,
« no previous file with comments | « components/cronet/android/test/javatests/src/org/chromium/net/QuicTest.java ('k') | net/nqe/network_quality_estimator.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698