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

Side by Side Diff: webrtc/sdk/android/src/jni/pc/java_native_conversion.h

Issue 2989323002: Revert of Break peerconnection_jni.cc into multiple files, in "pc" directory. (Closed)
Patch Set: Created 3 years, 4 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
OLDNEW
(Empty)
1 /*
2 * Copyright 2017 The WebRTC project authors. All Rights Reserved.
3 *
4 * Use of this source code is governed by a BSD-style license
5 * that can be found in the LICENSE file in the root of the source
6 * tree. An additional intellectual property rights grant can be found
7 * in the file PATENTS. All contributing project authors may
8 * be found in the AUTHORS file in the root of the source tree.
9 */
10
11 #ifndef WEBRTC_SDK_ANDROID_SRC_JNI_PC_JAVA_NATIVE_CONVERSION_H_
12 #define WEBRTC_SDK_ANDROID_SRC_JNI_PC_JAVA_NATIVE_CONVERSION_H_
13
14 #include <vector>
15
16 #include "webrtc/api/datachannelinterface.h"
17 #include "webrtc/api/jsep.h"
18 #include "webrtc/api/jsepicecandidate.h"
19 #include "webrtc/api/mediastreaminterface.h"
20 #include "webrtc/api/mediatypes.h"
21 #include "webrtc/api/peerconnectioninterface.h"
22 #include "webrtc/api/rtpparameters.h"
23 #include "webrtc/rtc_base/sslidentity.h"
24 #include "webrtc/sdk/android/src/jni/jni_helpers.h"
25
26 // This file contains helper methods for converting between simple C++ and Java
27 // PeerConnection-related structures. Similar to some methods in jni_helpers.h,
28 // but specifically for structures tied to the PeerConnection API.
29
30 namespace webrtc_jni {
31
32 webrtc::DataChannelInit JavaToNativeDataChannelInit(JNIEnv* jni,
33 jobject j_init);
34
35 cricket::MediaType JavaToNativeMediaType(JNIEnv* jni, jobject j_media_type);
36
37 jobject NativeToJavaMediaType(JNIEnv* jni, cricket::MediaType media_type);
38
39 cricket::Candidate JavaToNativeCandidate(JNIEnv* jni, jobject j_candidate);
40
41 jobject NativeToJavaCandidate(JNIEnv* jni,
42 jclass* candidate_class,
43 const cricket::Candidate& candidate);
44
45 jobjectArray NativeToJavaCandidateArray(
46 JNIEnv* jni,
47 const std::vector<cricket::Candidate>& candidates);
48
49 webrtc::SessionDescriptionInterface* JavaToNativeSessionDescription(
50 JNIEnv* jni,
51 jobject j_sdp);
52
53 jobject NativeToJavaSessionDescription(
54 JNIEnv* jni,
55 const webrtc::SessionDescriptionInterface* desc);
56
57 webrtc::PeerConnectionFactoryInterface::Options
58 JavaToNativePeerConnectionFactoryOptions(JNIEnv* jni, jobject options);
59
60 /*****************************************************
61 * Below are all things that go into RTCConfiguration.
62 *****************************************************/
63 webrtc::PeerConnectionInterface::IceTransportsType
64 JavaToNativeIceTransportsType(JNIEnv* jni, jobject j_ice_transports_type);
65
66 webrtc::PeerConnectionInterface::BundlePolicy JavaToNativeBundlePolicy(
67 JNIEnv* jni,
68 jobject j_bundle_policy);
69
70 webrtc::PeerConnectionInterface::RtcpMuxPolicy JavaToNativeRtcpMuxPolicy(
71 JNIEnv* jni,
72 jobject j_rtcp_mux_policy);
73
74 webrtc::PeerConnectionInterface::TcpCandidatePolicy
75 JavaToNativeTcpCandidatePolicy(JNIEnv* jni, jobject j_tcp_candidate_policy);
76
77 webrtc::PeerConnectionInterface::CandidateNetworkPolicy
78 JavaToNativeCandidateNetworkPolicy(JNIEnv* jni,
79 jobject j_candidate_network_policy);
80
81 rtc::KeyType JavaToNativeKeyType(JNIEnv* jni, jobject j_key_type);
82
83 webrtc::PeerConnectionInterface::ContinualGatheringPolicy
84 JavaToNativeContinualGatheringPolicy(JNIEnv* jni, jobject j_gathering_policy);
85
86 webrtc::PeerConnectionInterface::TlsCertPolicy JavaToNativeTlsCertPolicy(
87 JNIEnv* jni,
88 jobject j_ice_server_tls_cert_policy);
89
90 void JavaToNativeIceServers(
91 JNIEnv* jni,
92 jobject j_ice_servers,
93 webrtc::PeerConnectionInterface::IceServers* ice_servers);
94
95 void JavaToNativeRTCConfiguration(
96 JNIEnv* jni,
97 jobject j_rtc_config,
98 webrtc::PeerConnectionInterface::RTCConfiguration* rtc_config);
99
100 /*********************************************************
101 * RtpParameters, used for RtpSender and RtpReceiver APIs.
102 *********************************************************/
103 void JavaToNativeRtpParameters(JNIEnv* jni,
104 jobject j_parameters,
105 webrtc::RtpParameters* parameters);
106
107 jobject NativeToJavaRtpParameters(JNIEnv* jni,
108 const webrtc::RtpParameters& parameters);
109
110 } // namespace webrtc_jni
111
112 #endif // WEBRTC_SDK_ANDROID_SRC_JNI_PC_JAVA_NATIVE_CONVERSION_H_
OLDNEW
« no previous file with comments | « webrtc/sdk/android/src/jni/pc/dtmfsender_jni.cc ('k') | webrtc/sdk/android/src/jni/pc/java_native_conversion.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698