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 // TODO(mef): Replace following with generated jni/UrlRequestContext_jni.h |
| 16 |
| 17 // Native method implementations of the org.chromium.netjni.UrlRequestContext |
| 18 |
| 19 JNIEXPORT jstring JNICALL |
| 20 Java_org_chromium_net_UrlRequestContext_getVersion(JNIEnv* env, |
| 21 jobject object); |
| 22 |
| 23 JNIEXPORT void JNICALL |
| 24 Java_org_chromium_net_UrlRequestContext_nativeInitialize(JNIEnv* env, |
| 25 jobject object, |
| 26 jobject context, |
| 27 jstring user_agent, |
| 28 jint log_level); |
| 29 |
| 30 JNIEXPORT void JNICALL |
| 31 Java_org_chromium_net_UrlRequestContext_nativeFinalize(JNIEnv* env, |
| 32 jobject object); |
| 33 |
| 34 URLRequestContextPeer* GetURLRequestContextPeer(JNIEnv* env, |
| 35 jobject request_context); |
| 36 |
| 37 #endif // NET_CRONET_ANDROID_URLREQUESTCONTEXT_H_ |
OLD | NEW |