| Index: net/cronet/android/org_chromium_net_UrlRequestContext.h
|
| diff --git a/net/cronet/android/org_chromium_net_UrlRequestContext.h b/net/cronet/android/org_chromium_net_UrlRequestContext.h
|
| new file mode 100644
|
| index 0000000000000000000000000000000000000000..b70198026382ba23e64c097993d9ac89e150f29f
|
| --- /dev/null
|
| +++ b/net/cronet/android/org_chromium_net_UrlRequestContext.h
|
| @@ -0,0 +1,47 @@
|
| +// Copyright 2014 The Chromium Authors. All rights reserved.
|
| +// Use of this source code is governed by a BSD-style license that can be
|
| +// found in the LICENSE file.
|
| +
|
| +#ifndef NET_CRONET_ANDROID_URLREQUESTCONTEXT_H_
|
| +#define NET_CRONET_ANDROID_URLREQUESTCONTEXT_H_
|
| +
|
| +#include <jni.h>
|
| +
|
| +#include "net/cronet/android/url_request_context_peer.h"
|
| +
|
| +// Returns a JNIEnv attached to the current thread.
|
| +JNIEnv* GetEnv(JavaVM* vm);
|
| +
|
| +#ifdef __cplusplus
|
| +extern "C" {
|
| +#endif
|
| +
|
| +/*
|
| + * Native method implementations of the org.chromium.netjni.UrlRequestContext
|
| + * class.
|
| + */
|
| +
|
| +JNIEXPORT jstring JNICALL
|
| +Java_org_chromium_net_UrlRequestContext_getVersion(
|
| + JNIEnv* env, jobject object);
|
| +
|
| +JNIEXPORT void JNICALL
|
| +Java_org_chromium_net_UrlRequestContext_nativeInitialize(
|
| + JNIEnv* env,
|
| + jobject object,
|
| + jobject context,
|
| + jstring user_agent,
|
| + jint log_level);
|
| +
|
| +JNIEXPORT void JNICALL
|
| +Java_org_chromium_net_UrlRequestContext_nativeFinalize(
|
| + JNIEnv* env, jobject object);
|
| +
|
| +URLRequestContextPeer* GetURLRequestContextPeer(JNIEnv* env,
|
| + jobject request_context);
|
| +
|
| +#ifdef __cplusplus
|
| +}
|
| +#endif
|
| +
|
| +#endif // NET_CRONET_ANDROID_URLREQUESTCONTEXT_H_
|
|
|