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

Unified Diff: webrtc/api/android/jni/peerconnection_jni.cc

Issue 2128483002: Fix for the JNI interface of RtcEventLog functions. (Closed) Base URL: https://chromium.googlesource.com/external/webrtc.git@master
Patch Set: Created 4 years, 5 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « webrtc/api/android/java/src/org/webrtc/PeerConnection.java ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: webrtc/api/android/jni/peerconnection_jni.cc
diff --git a/webrtc/api/android/jni/peerconnection_jni.cc b/webrtc/api/android/jni/peerconnection_jni.cc
index 0e9a5a035b66a8447d058dd626663219b5d05f52..b5a191dddbf63dd0f06f819e465c3767d42243c6 100644
--- a/webrtc/api/android/jni/peerconnection_jni.cc
+++ b/webrtc/api/android/jni/peerconnection_jni.cc
@@ -1319,24 +1319,6 @@ JOW(void, PeerConnectionFactory_nativeStopAecDump)(
factory->StopAecDump();
}
-JOW(jboolean, PeerConnectionFactory_nativeStartRtcEventLog)
-(JNIEnv* jni,
- jclass,
- jlong native_factory,
- jint file,
- jint filesize_limit_bytes) {
- rtc::scoped_refptr<PeerConnectionFactoryInterface> factory(
- factoryFromJava(native_factory));
- return factory->StartRtcEventLog(file, filesize_limit_bytes);
-}
-
-JOW(void, PeerConnectionFactory_nativeStopRtcEventLog)(
- JNIEnv* jni, jclass, jlong native_factory) {
- rtc::scoped_refptr<PeerConnectionFactoryInterface> factory(
- factoryFromJava(native_factory));
- factory->StopRtcEventLog();
-}
-
JOW(void, PeerConnectionFactory_nativeSetOptions)(
JNIEnv* jni, jclass, jlong native_factory, jobject options) {
rtc::scoped_refptr<PeerConnectionFactoryInterface> factory(
@@ -1914,6 +1896,16 @@ JOW(bool, PeerConnection_nativeGetStats)(
PeerConnectionInterface::kStatsOutputLevelStandard);
}
+JOW(bool, PeerConnection_nativeStartRtcEventLog)(
+ JNIEnv* jni, jobject j_pc, int file_descriptor, int max_size_bytes) {
+ return ExtractNativePC(jni, j_pc)->StartRtcEventLog(file_descriptor,
+ max_size_bytes);
+}
+
+JOW(void, PeerConnection_nativeStopRtcEventLog)(JNIEnv* jni, jobject j_pc) {
+ ExtractNativePC(jni, j_pc)->StopRtcEventLog();
+}
+
JOW(jobject, PeerConnection_signalingState)(JNIEnv* jni, jobject j_pc) {
PeerConnectionInterface::SignalingState state =
ExtractNativePC(jni, j_pc)->signaling_state();
« no previous file with comments | « webrtc/api/android/java/src/org/webrtc/PeerConnection.java ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698