OLD | NEW |
(Empty) | |
| 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 |
| 3 // found in the LICENSE file. |
| 4 |
| 5 #ifndef NET_CRONET_ANDROID_URLREQUESTCONTEXT_H_ |
| 6 #define NET_CRONET_ANDROID_URLREQUESTCONTEXT_H_ |
| 7 |
| 8 #include <jni.h> |
| 9 |
| 10 #include "net/cronet/android/url_request_context_peer.h" |
| 11 |
| 12 // Returns a JNIEnv attached to the current thread. |
| 13 JNIEnv* GetEnv(JavaVM* vm); |
| 14 |
| 15 #ifdef __cplusplus |
| 16 extern "C" { |
| 17 #endif |
| 18 |
| 19 /* |
| 20 * Native method implementations of the org.chromium.netjni.UrlRequestContext |
| 21 * class. |
| 22 */ |
| 23 |
| 24 JNIEXPORT jstring JNICALL |
| 25 Java_org_chromium_net_UrlRequestContext_getVersion( |
| 26 JNIEnv* env, jobject object); |
| 27 |
| 28 JNIEXPORT void JNICALL |
| 29 Java_org_chromium_net_UrlRequestContext_nativeInitialize( |
| 30 JNIEnv* env, |
| 31 jobject object, |
| 32 jobject context, |
| 33 jstring user_agent, |
| 34 jint log_level); |
| 35 |
| 36 JNIEXPORT void JNICALL |
| 37 Java_org_chromium_net_UrlRequestContext_nativeFinalize( |
| 38 JNIEnv* env, jobject object); |
| 39 |
| 40 URLRequestContextPeer* GetURLRequestContextPeer(JNIEnv* env, |
| 41 jobject request_context); |
| 42 |
| 43 #ifdef __cplusplus |
| 44 } |
| 45 #endif |
| 46 |
| 47 #endif // NET_CRONET_ANDROID_URLREQUESTCONTEXT_H_ |
OLD | NEW |