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

Side by Side Diff: webrtc/api/java/jni/peerconnection_jni.cc

Issue 1974453002: Add a parameter to set a maximum filesize when starting an RTC event log on the PeerConnectionFacto… (Closed) Base URL: https://chromium.googlesource.com/external/webrtc.git@master
Patch Set: Fixed typo in JNI code. Created 4 years, 7 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
« no previous file with comments | « no previous file | webrtc/api/java/src/org/webrtc/PeerConnectionFactory.java » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 /* 1 /*
2 * Copyright 2013 The WebRTC project authors. All Rights Reserved. 2 * Copyright 2013 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 10
(...skipping 1270 matching lines...) Expand 10 before | Expand all | Expand 10 after
1281 return factory->StartAecDump(file, filesize_limit_bytes); 1281 return factory->StartAecDump(file, filesize_limit_bytes);
1282 } 1282 }
1283 1283
1284 JOW(void, PeerConnectionFactory_nativeStopAecDump)( 1284 JOW(void, PeerConnectionFactory_nativeStopAecDump)(
1285 JNIEnv* jni, jclass, jlong native_factory) { 1285 JNIEnv* jni, jclass, jlong native_factory) {
1286 rtc::scoped_refptr<PeerConnectionFactoryInterface> factory( 1286 rtc::scoped_refptr<PeerConnectionFactoryInterface> factory(
1287 factoryFromJava(native_factory)); 1287 factoryFromJava(native_factory));
1288 factory->StopAecDump(); 1288 factory->StopAecDump();
1289 } 1289 }
1290 1290
1291 JOW(jboolean, PeerConnectionFactory_nativeStartRtcEventLog)( 1291 JOW(jboolean, PeerConnectionFactory_nativeStartRtcEventLog)
1292 JNIEnv* jni, jclass, jlong native_factory, jint file) { 1292 (JNIEnv* jni,
1293 jclass,
1294 jlong native_factory,
1295 jint file,
1296 jint filesize_limit_bytes) {
1293 rtc::scoped_refptr<PeerConnectionFactoryInterface> factory( 1297 rtc::scoped_refptr<PeerConnectionFactoryInterface> factory(
1294 factoryFromJava(native_factory)); 1298 factoryFromJava(native_factory));
1295 return factory->StartRtcEventLog(file); 1299 return factory->StartRtcEventLog(file, filesize_limit_bytes);
1296 } 1300 }
1297 1301
1298 JOW(void, PeerConnectionFactory_nativeStopRtcEventLog)( 1302 JOW(void, PeerConnectionFactory_nativeStopRtcEventLog)(
1299 JNIEnv* jni, jclass, jlong native_factory) { 1303 JNIEnv* jni, jclass, jlong native_factory) {
1300 rtc::scoped_refptr<PeerConnectionFactoryInterface> factory( 1304 rtc::scoped_refptr<PeerConnectionFactoryInterface> factory(
1301 factoryFromJava(native_factory)); 1305 factoryFromJava(native_factory));
1302 factory->StopRtcEventLog(); 1306 factory->StopRtcEventLog();
1303 } 1307 }
1304 1308
1305 JOW(void, PeerConnectionFactory_nativeSetOptions)( 1309 JOW(void, PeerConnectionFactory_nativeSetOptions)(
(...skipping 903 matching lines...) Expand 10 before | Expand all | Expand 10 after
2209 return JavaStringFromStdString( 2213 return JavaStringFromStdString(
2210 jni, 2214 jni,
2211 reinterpret_cast<RtpReceiverInterface*>(j_rtp_receiver_pointer)->id()); 2215 reinterpret_cast<RtpReceiverInterface*>(j_rtp_receiver_pointer)->id());
2212 } 2216 }
2213 2217
2214 JOW(void, RtpReceiver_free)(JNIEnv* jni, jclass, jlong j_rtp_receiver_pointer) { 2218 JOW(void, RtpReceiver_free)(JNIEnv* jni, jclass, jlong j_rtp_receiver_pointer) {
2215 reinterpret_cast<RtpReceiverInterface*>(j_rtp_receiver_pointer)->Release(); 2219 reinterpret_cast<RtpReceiverInterface*>(j_rtp_receiver_pointer)->Release();
2216 } 2220 }
2217 2221
2218 } // namespace webrtc_jni 2222 } // namespace webrtc_jni
OLDNEW
« no previous file with comments | « no previous file | webrtc/api/java/src/org/webrtc/PeerConnectionFactory.java » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698