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

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: 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 unified diff | Download patch | Annotate | Revision Log
OLDNEW
(Empty)
1 // Copyright 2013 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 extern "C" {
16
17 // TODO(mef): Replace following with generated jni/UrlRequestContext_jni.h
18
19 // Native method implementations of the org.chromium.netjni.UrlRequestContext
20
21 JNIEXPORT jstring JNICALL
22 Java_org_chromium_net_UrlRequestContext_getVersion(JNIEnv* env,
23 jobject object);
24
25 JNIEXPORT void JNICALL
26 Java_org_chromium_net_UrlRequestContext_nativeInitialize(JNIEnv* env,
27 jobject object,
28 jobject context,
29 jstring user_agent,
30 jint log_level);
31
32 JNIEXPORT void JNICALL
33 Java_org_chromium_net_UrlRequestContext_nativeFinalize(JNIEnv* env,
34 jobject object);
35
36 URLRequestContextPeer* GetURLRequestContextPeer(JNIEnv* env,
37 jobject request_context);
38
39 } // extern "C"
40
41 #endif // NET_CRONET_ANDROID_URLREQUESTCONTEXT_H_
OLDNEW
« 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