OLD | NEW |
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 107 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
118 } | 118 } |
119 return loggingLevel; | 119 return loggingLevel; |
120 } | 120 } |
121 | 121 |
122 // Returns an instance ChromiumUrlRequestContextAdapter to be stored in | 122 // Returns an instance ChromiumUrlRequestContextAdapter to be stored in |
123 // mChromiumUrlRequestContextAdapter. | 123 // mChromiumUrlRequestContextAdapter. |
124 private native long nativeCreateRequestContextAdapter(Context context, | 124 private native long nativeCreateRequestContextAdapter(Context context, |
125 String userAgent, int loggingLevel, String config); | 125 String userAgent, int loggingLevel, String config); |
126 | 126 |
127 private native void nativeReleaseRequestContextAdapter( | 127 private native void nativeReleaseRequestContextAdapter( |
128 long ChromiumUrlRequestContextAdapter); | 128 long chromiumUrlRequestContextAdapter); |
129 | 129 |
130 private native void nativeInitializeStatistics(); | 130 private native void nativeInitializeStatistics(); |
131 | 131 |
132 private native String nativeGetStatisticsJSON(String filter); | 132 private native String nativeGetStatisticsJSON(String filter); |
133 | 133 |
134 private native void nativeStartNetLogToFile( | 134 private native void nativeStartNetLogToFile( |
135 long ChromiumUrlRequestContextAdapter, String fileName); | 135 long chromiumUrlRequestContextAdapter, String fileName); |
136 | 136 |
137 private native void nativeStopNetLog(long ChromiumUrlRequestContextAdapter); | 137 private native void nativeStopNetLog(long chromiumUrlRequestContextAdapter); |
138 } | 138 } |
OLD | NEW |