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

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: Address code review comments. 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 // TODO(mef): Replace following with generated jni/UrlRequestContext_jni.h
16
17 // Native method implementations of the org.chromium.netjni.UrlRequestContext
18
19 JNIEXPORT jstring JNICALL
20 Java_org_chromium_net_UrlRequestContext_getVersion(JNIEnv* env,
21 jobject object);
22
23 JNIEXPORT void JNICALL
24 Java_org_chromium_net_UrlRequestContext_nativeInitialize(JNIEnv* env,
25 jobject object,
26 jobject context,
27 jstring user_agent,
28 jint log_level);
29
30 JNIEXPORT void JNICALL
31 Java_org_chromium_net_UrlRequestContext_nativeFinalize(JNIEnv* env,
32 jobject object);
33
34 URLRequestContextPeer* GetURLRequestContextPeer(JNIEnv* env,
35 jobject request_context);
36
37 #endif // NET_CRONET_ANDROID_URLREQUESTCONTEXT_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698