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

Side by Side Diff: webrtc/sdk/android/src/jni/classreferenceholder.cc

Issue 2557803002: Add disabled certificate check support to IceServer PeerConnection API. (Closed)
Patch Set: Fix unused tlsOpts with no assert, second try with ATTRIBUTE_UNUSED. Created 4 years 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
1 /* 1 /*
2 * Copyright 2015 The WebRTC project authors. All Rights Reserved. 2 * Copyright 2015 The WebRTC project authors. All Rights Reserved.
3 * 3 *
4 * Use of this source code is governed by a BSD-style license 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 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 6 * tree. An additional intellectual property rights grant can be found
7 * in the file PATENTS. All contributing project authors may 7 * in the file PATENTS. All contributing project authors may
8 * be found in the AUTHORS file in the root of the source tree. 8 * be found in the AUTHORS file in the root of the source tree.
9 */ 9 */
10 #include "webrtc/sdk/android/src/jni/classreferenceholder.h" 10 #include "webrtc/sdk/android/src/jni/classreferenceholder.h"
(...skipping 64 matching lines...) Expand 10 before | Expand all | Expand 10 after
75 LoadClass(jni, "org/webrtc/NetworkMonitorAutoDetect$IPAddress"); 75 LoadClass(jni, "org/webrtc/NetworkMonitorAutoDetect$IPAddress");
76 LoadClass(jni, "org/webrtc/NetworkMonitorAutoDetect$NetworkInformation"); 76 LoadClass(jni, "org/webrtc/NetworkMonitorAutoDetect$NetworkInformation");
77 LoadClass(jni, "org/webrtc/PeerConnectionFactory"); 77 LoadClass(jni, "org/webrtc/PeerConnectionFactory");
78 LoadClass(jni, "org/webrtc/PeerConnection$BundlePolicy"); 78 LoadClass(jni, "org/webrtc/PeerConnection$BundlePolicy");
79 LoadClass(jni, "org/webrtc/PeerConnection$ContinualGatheringPolicy"); 79 LoadClass(jni, "org/webrtc/PeerConnection$ContinualGatheringPolicy");
80 LoadClass(jni, "org/webrtc/PeerConnection$RtcpMuxPolicy"); 80 LoadClass(jni, "org/webrtc/PeerConnection$RtcpMuxPolicy");
81 LoadClass(jni, "org/webrtc/PeerConnection$IceConnectionState"); 81 LoadClass(jni, "org/webrtc/PeerConnection$IceConnectionState");
82 LoadClass(jni, "org/webrtc/PeerConnection$IceGatheringState"); 82 LoadClass(jni, "org/webrtc/PeerConnection$IceGatheringState");
83 LoadClass(jni, "org/webrtc/PeerConnection$IceTransportsType"); 83 LoadClass(jni, "org/webrtc/PeerConnection$IceTransportsType");
84 LoadClass(jni, "org/webrtc/PeerConnection$TcpCandidatePolicy"); 84 LoadClass(jni, "org/webrtc/PeerConnection$TcpCandidatePolicy");
85 LoadClass(jni, "org/webrtc/PeerConnection$TlsCertificatePolicy");
magjed_webrtc 2016/12/16 11:57:54 There is no need to add this unless you want to ho
hnsl1 2016/12/16 14:18:39 Without this line I get this runtime JNI crash: #
magjed_webrtc 2016/12/19 08:54:05 You are still using the globally cached FindClass
85 LoadClass(jni, "org/webrtc/PeerConnection$CandidateNetworkPolicy"); 86 LoadClass(jni, "org/webrtc/PeerConnection$CandidateNetworkPolicy");
86 LoadClass(jni, "org/webrtc/PeerConnection$KeyType"); 87 LoadClass(jni, "org/webrtc/PeerConnection$KeyType");
87 LoadClass(jni, "org/webrtc/PeerConnection$SignalingState"); 88 LoadClass(jni, "org/webrtc/PeerConnection$SignalingState");
88 LoadClass(jni, "org/webrtc/RtpReceiver"); 89 LoadClass(jni, "org/webrtc/RtpReceiver");
89 LoadClass(jni, "org/webrtc/RtpSender"); 90 LoadClass(jni, "org/webrtc/RtpSender");
90 LoadClass(jni, "org/webrtc/SessionDescription"); 91 LoadClass(jni, "org/webrtc/SessionDescription");
91 LoadClass(jni, "org/webrtc/SessionDescription$Type"); 92 LoadClass(jni, "org/webrtc/SessionDescription$Type");
92 LoadClass(jni, "org/webrtc/StatsReport"); 93 LoadClass(jni, "org/webrtc/StatsReport");
93 LoadClass(jni, "org/webrtc/StatsReport$Value"); 94 LoadClass(jni, "org/webrtc/StatsReport$Value");
94 LoadClass(jni, "org/webrtc/SurfaceTextureHelper"); 95 LoadClass(jni, "org/webrtc/SurfaceTextureHelper");
(...skipping 31 matching lines...) Expand 10 before | Expand all | Expand 10 after
126 RTC_CHECK(inserted) << "Duplicate class name: " << name; 127 RTC_CHECK(inserted) << "Duplicate class name: " << name;
127 } 128 }
128 129
129 // Returns a global reference guaranteed to be valid for the lifetime of the 130 // Returns a global reference guaranteed to be valid for the lifetime of the
130 // process. 131 // process.
131 jclass FindClass(JNIEnv* jni, const char* name) { 132 jclass FindClass(JNIEnv* jni, const char* name) {
132 return g_class_reference_holder->GetClass(name); 133 return g_class_reference_holder->GetClass(name);
133 } 134 }
134 135
135 } // namespace webrtc_jni 136 } // namespace webrtc_jni
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698