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

Unified Diff: components/cronet/android/java/src/org/chromium/net/impl/ImplVersion.template

Issue 2660963002: Cronet: a framework to provide alternative Cronet implementations (Closed)
Patch Set: Created 3 years, 11 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: components/cronet/android/java/src/org/chromium/net/impl/ImplVersion.template
diff --git a/components/cronet/android/java/src/org/chromium/net/impl/ImplVersion.template b/components/cronet/android/java/src/org/chromium/net/impl/ImplVersion.template
index babb441cde8a3ee47c0b8e41e04b6941f6df53c6..cd7f249db482cec602d669a12975a32fae7029a6 100644
--- a/components/cronet/android/java/src/org/chromium/net/impl/ImplVersion.template
+++ b/components/cronet/android/java/src/org/chromium/net/impl/ImplVersion.template
@@ -6,10 +6,28 @@ package org.chromium.net.impl;
// Version based on chrome/VERSION.
public class ImplVersion {
- public static final String CRONET_VERSION = "@MAJOR@.@MINOR@.@BUILD@.@PATCH@";
- public static final String LAST_CHANGE = "@LASTCHANGE@";
+ private static final String CRONET_VERSION = "@MAJOR@.@MINOR@.@BUILD@.@PATCH@";
+ private static final int API_LEVEL = @API_LEVEL@;
+ private static final String LAST_CHANGE = "@LASTCHANGE@";
- public static String getVersion() {
+ /**
+ * Private constructor. All members of this class should be static.
+ */
+ private ImplVersion() {}
+
+ public static String getCronetVersionWithLastChange() {
return CRONET_VERSION + "@" + LAST_CHANGE.substring(0, 8);
}
+
+ public static int getApiLevel() {
+ return API_LEVEL;
+ }
+
+ public static String getCronetVersion() {
+ return CRONET_VERSION;
+ }
+
+ public static String getLastChange() {
+ return LAST_CHANGE;
+ }
}

Powered by Google App Engine
This is Rietveld 408576698