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