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.Handler; | 8 import android.os.Handler; |
9 import android.os.Looper; | 9 import android.os.Looper; |
10 import android.os.Process; | 10 import android.os.Process; |
11 import android.util.Log; | 11 import android.util.Log; |
12 | 12 |
13 import org.chromium.base.annotations.CalledByNative; | 13 import org.chromium.base.annotations.CalledByNative; |
14 import org.chromium.base.annotations.JNINamespace; | 14 import org.chromium.base.annotations.JNINamespace; |
15 | 15 |
16 /** | 16 /** |
17 * Provides context for the native HTTP operations. | 17 * Provides context for the native HTTP operations. |
18 * @deprecated Use {@link CronetEngine} instead. | 18 * @deprecated Use {@link CronetEngine} instead. |
19 */ | 19 */ |
20 @JNINamespace("cronet") | 20 @JNINamespace("cronet") |
21 @Deprecated | 21 @Deprecated |
22 public class ChromiumUrlRequestContext { | 22 public class ChromiumUrlRequestContext { |
23 private static final int LOG_NONE = 3; // LOG(FATAL), no VLOG. | 23 private static final int LOG_NONE = 3; // LOG(FATAL), no VLOG. |
24 private static final int LOG_DEBUG = -1; // LOG(FATAL...INFO), VLOG(1) | 24 private static final int LOG_DEBUG = -1; // LOG(FATAL...INFO), VLOG(1) |
25 private static final int LOG_VERBOSE = -2; // LOG(FATAL...INFO), VLOG(2) | 25 private static final int LOG_VERBOSE = -2; // LOG(FATAL...INFO), VLOG(2) |
26 static final String LOG_TAG = "ChromiumNetwork"; | 26 static final String LOG_TAG = ChromiumUrlRequestContext.class.getSimpleName( ); |
pauljensen
2016/07/01 15:40:41
This name is too long. Limit is 23 chars. This i
| |
27 | 27 |
28 /** | 28 /** |
29 * Native adapter object, owned by ChromiumUrlRequestContext. | 29 * Native adapter object, owned by ChromiumUrlRequestContext. |
30 */ | 30 */ |
31 private long mChromiumUrlRequestContextAdapter; | 31 private long mChromiumUrlRequestContextAdapter; |
32 | 32 |
33 /** | 33 /** |
34 * Constructor. | 34 * Constructor. |
35 */ | 35 */ |
36 protected ChromiumUrlRequestContext( | 36 protected ChromiumUrlRequestContext( |
(...skipping 115 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
152 | 152 |
153 private native void nativeStartNetLogToFile( | 153 private native void nativeStartNetLogToFile( |
154 long chromiumUrlRequestContextAdapter, String fileName, | 154 long chromiumUrlRequestContextAdapter, String fileName, |
155 boolean logAll); | 155 boolean logAll); |
156 | 156 |
157 private native void nativeStopNetLog(long chromiumUrlRequestContextAdapter); | 157 private native void nativeStopNetLog(long chromiumUrlRequestContextAdapter); |
158 | 158 |
159 private native void nativeInitRequestContextOnMainThread( | 159 private native void nativeInitRequestContextOnMainThread( |
160 long chromiumUrlRequestContextAdapter); | 160 long chromiumUrlRequestContextAdapter); |
161 } | 161 } |
OLD | NEW |