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

Side by Side Diff: components/cronet/android/java/src/org/chromium/net/UrlRequestContext.java

Issue 344793006: Generate Cronet Version.java based on VERSION and LASTCHANGE files. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Updated HttpUrlRequestFactoryTest to expect correct version pattern in factory name. Created 6 years, 6 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 | Annotate | Revision Log
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; 5 package org.chromium.net;
6 6
7 import android.content.Context; 7 import android.content.Context;
8 import android.os.ConditionVariable; 8 import android.os.ConditionVariable;
9 import android.os.Process; 9 import android.os.Process;
10 import android.util.Log; 10 import android.util.Log;
(...skipping 28 matching lines...) Expand all
39 userAgent, getLoggingLevel(), config); 39 userAgent, getLoggingLevel(), config);
40 if (mUrlRequestContextPeer == 0) 40 if (mUrlRequestContextPeer == 0)
41 throw new NullPointerException("Context Peer creation failed"); 41 throw new NullPointerException("Context Peer creation failed");
42 42
43 // TODO(mef): Revisit the need of block here. 43 // TODO(mef): Revisit the need of block here.
44 mStarted.block(2000); 44 mStarted.block(2000);
45 } 45 }
46 46
47 /** 47 /**
48 * Returns the version of this network stack formatted as N.N.N.N/X where 48 * Returns the version of this network stack formatted as N.N.N.N/X where
49 * N.N.N.N is the version of Chromium and X is the version of the JNI layer. 49 * N.N.N.N is the version of Chromium and X is the revision number.
50 */ 50 */
51 public static String getVersion() { 51 public static String getVersion() {
52 return nativeGetVersion(); 52 return nativeGetVersion();
53 } 53 }
54 54
55 /** 55 /**
56 * Initializes statistics recorder. 56 * Initializes statistics recorder.
57 */ 57 */
58 public void initializeStatistics() { 58 public void initializeStatistics() {
59 nativeInitializeStatistics(); 59 nativeInitializeStatistics();
(...skipping 71 matching lines...) Expand 10 before | Expand all | Expand 10 after
131 131
132 private native void nativeInitializeStatistics(); 132 private native void nativeInitializeStatistics();
133 133
134 private native String nativeGetStatisticsJSON(String filter); 134 private native String nativeGetStatisticsJSON(String filter);
135 135
136 private native void nativeStartNetLogToFile(long urlRequestContextPeer, 136 private native void nativeStartNetLogToFile(long urlRequestContextPeer,
137 String fileName); 137 String fileName);
138 138
139 private native void nativeStopNetLog(long urlRequestContextPeer); 139 private native void nativeStopNetLog(long urlRequestContextPeer);
140 } 140 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698