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

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: Changed copyright year on sample code back to 2012 Created 6 years, 9 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..83337a78f8504fe77893d2980903ebf0de36a85e
--- /dev/null
+++ b/net/cronet/android/org_chromium_net_UrlRequestContext.h
@@ -0,0 +1,41 @@
+// Copyright 2013 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);
+
+extern "C" {
+
+// TODO(mef): Replace following with generated jni/UrlRequestContext_jni.h
+
+// Native method implementations of the org.chromium.netjni.UrlRequestContext
+
+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);
+
+} // extern "C"
+
+#endif // NET_CRONET_ANDROID_URLREQUESTCONTEXT_H_
« no previous file with comments | « net/cronet/android/org_chromium_net_UrlRequest.cc ('k') | net/cronet/android/org_chromium_net_UrlRequestContext.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698