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

Side by Side 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, 10 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 unified diff | Download patch
OLDNEW
1 // Copyright 2014 The Chromium Authors. All rights reserved. 1 // Copyright 2014 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 package org.chromium.net.impl; 5 package org.chromium.net.impl;
6 6
7 // Version based on chrome/VERSION. 7 // Version based on chrome/VERSION.
8 public class ImplVersion { 8 public class ImplVersion {
9 public static final String CRONET_VERSION = "@MAJOR@.@MINOR@.@BUILD@.@PATCH@ "; 9 private static final String CRONET_VERSION = "@MAJOR@.@MINOR@.@BUILD@.@PATCH @";
10 public static final String LAST_CHANGE = "@LASTCHANGE@"; 10 private static final int API_LEVEL = @API_LEVEL@;
11 private static final String LAST_CHANGE = "@LASTCHANGE@";
11 12
12 public static String getVersion() { 13 /**
14 * Private constructor. All members of this class should be static.
15 */
16 private ImplVersion() {}
17
18 public static String getCronetVersionWithLastChange() {
13 return CRONET_VERSION + "@" + LAST_CHANGE.substring(0, 8); 19 return CRONET_VERSION + "@" + LAST_CHANGE.substring(0, 8);
14 } 20 }
21
22 public static int getApiLevel() {
23 return API_LEVEL;
24 }
25
26 public static String getCronetVersion() {
27 return CRONET_VERSION;
28 }
29
30 public static String getLastChange() {
31 return LAST_CHANGE;
32 }
15 } 33 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698