Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(466)

Unified Diff: net/cronet/android/org_chromium_net_UrlRequestContext.h

Issue 145213003: Initial upload of cronet for Android. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Added cronet_package target to copy cronet.jar and stripped libcronet.so Created 6 years, 10 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
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_

Powered by Google App Engine
This is Rietveld 408576698