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

Side by Side 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: NET_EXPORT RequestPriorityToString to avoid buildbot errors. 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 unified diff | Download patch | Annotate | Revision Log
OLDNEW
(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 #ifdef __cplusplus
16 extern "C" {
17 #endif
18
19 /*
20 * Native method implementations of the org.chromium.netjni.UrlRequestContext
21 * class.
22 */
mmenke 2014/02/27 23:06:02 C++ style?
mef 2014/03/03 19:15:13 Done.
23
24 JNIEXPORT jstring JNICALL
25 Java_org_chromium_net_UrlRequestContext_getVersion(
26 JNIEnv* env, jobject object);
27
28 JNIEXPORT void JNICALL
29 Java_org_chromium_net_UrlRequestContext_nativeInitialize(
30 JNIEnv* env,
31 jobject object,
32 jobject context,
33 jstring user_agent,
34 jint log_level);
35
36 JNIEXPORT void JNICALL
37 Java_org_chromium_net_UrlRequestContext_nativeFinalize(
38 JNIEnv* env, jobject object);
39
40 URLRequestContextPeer* GetURLRequestContextPeer(JNIEnv* env,
41 jobject request_context);
42
43 #ifdef __cplusplus
44 }
45 #endif
46
47 #endif // NET_CRONET_ANDROID_URLREQUESTCONTEXT_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698