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

Side by Side Diff: talk/app/webrtc/java/jni/peerconnection_jni.cc

Issue 1413483003: Added option to specify a maximum file size when recording an AEC dump. (Closed) Base URL: https://chromium.googlesource.com/external/webrtc.git@master
Patch Set: Added function to avoid breaking Chromium. Created 5 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
« no previous file with comments | « no previous file | talk/app/webrtc/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 * libjingle 2 * libjingle
3 * Copyright 2013 Google Inc. 3 * Copyright 2013 Google Inc.
4 * 4 *
5 * Redistribution and use in source and binary forms, with or without 5 * Redistribution and use in source and binary forms, with or without
6 * modification, are permitted provided that the following conditions are met: 6 * modification, are permitted provided that the following conditions are met:
7 * 7 *
8 * 1. Redistributions of source code must retain the above copyright notice, 8 * 1. Redistributions of source code must retain the above copyright notice,
9 * this list of conditions and the following disclaimer. 9 * this list of conditions and the following disclaimer.
10 * 2. Redistributions in binary form must reproduce the above copyright notice, 10 * 2. Redistributions in binary form must reproduce the above copyright notice,
(...skipping 1261 matching lines...) Expand 10 before | Expand all | Expand 10 after
1272 jlong native_source) { 1272 jlong native_source) {
1273 rtc::scoped_refptr<PeerConnectionFactoryInterface> factory( 1273 rtc::scoped_refptr<PeerConnectionFactoryInterface> factory(
1274 factoryFromJava(native_factory)); 1274 factoryFromJava(native_factory));
1275 rtc::scoped_refptr<AudioTrackInterface> track(factory->CreateAudioTrack( 1275 rtc::scoped_refptr<AudioTrackInterface> track(factory->CreateAudioTrack(
1276 JavaToStdString(jni, id), 1276 JavaToStdString(jni, id),
1277 reinterpret_cast<AudioSourceInterface*>(native_source))); 1277 reinterpret_cast<AudioSourceInterface*>(native_source)));
1278 return (jlong)track.release(); 1278 return (jlong)track.release();
1279 } 1279 }
1280 1280
1281 JOW(jboolean, PeerConnectionFactory_nativeStartAecDump)( 1281 JOW(jboolean, PeerConnectionFactory_nativeStartAecDump)(
1282 JNIEnv* jni, jclass, jlong native_factory, jint file) { 1282 JNIEnv* jni, jclass, jlong native_factory, jint file,
1283 jint filesize_limit_bytes) {
1283 #if defined(ANDROID) 1284 #if defined(ANDROID)
1284 rtc::scoped_refptr<PeerConnectionFactoryInterface> factory( 1285 rtc::scoped_refptr<PeerConnectionFactoryInterface> factory(
1285 factoryFromJava(native_factory)); 1286 factoryFromJava(native_factory));
1286 return factory->StartAecDump(file); 1287 return factory->StartAecDump(file, filesize_limit_bytes);
1287 #else 1288 #else
1288 return false; 1289 return false;
1289 #endif 1290 #endif
1290 } 1291 }
1291 1292
1292 JOW(void, PeerConnectionFactory_nativeStopAecDump)( 1293 JOW(void, PeerConnectionFactory_nativeStopAecDump)(
1293 JNIEnv* jni, jclass, jlong native_factory) { 1294 JNIEnv* jni, jclass, jlong native_factory) {
1294 #if defined(ANDROID) 1295 #if defined(ANDROID)
1295 rtc::scoped_refptr<PeerConnectionFactoryInterface> factory( 1296 rtc::scoped_refptr<PeerConnectionFactoryInterface> factory(
1296 factoryFromJava(native_factory)); 1297 factoryFromJava(native_factory));
(...skipping 887 matching lines...) Expand 10 before | Expand all | Expand 10 after
2184 return JavaStringFromStdString( 2185 return JavaStringFromStdString(
2185 jni, 2186 jni,
2186 reinterpret_cast<RtpReceiverInterface*>(j_rtp_receiver_pointer)->id()); 2187 reinterpret_cast<RtpReceiverInterface*>(j_rtp_receiver_pointer)->id());
2187 } 2188 }
2188 2189
2189 JOW(void, RtpReceiver_free)(JNIEnv* jni, jclass, jlong j_rtp_receiver_pointer) { 2190 JOW(void, RtpReceiver_free)(JNIEnv* jni, jclass, jlong j_rtp_receiver_pointer) {
2190 reinterpret_cast<RtpReceiverInterface*>(j_rtp_receiver_pointer)->Release(); 2191 reinterpret_cast<RtpReceiverInterface*>(j_rtp_receiver_pointer)->Release();
2191 } 2192 }
2192 2193
2193 } // namespace webrtc_jni 2194 } // namespace webrtc_jni
OLDNEW
« no previous file with comments | « no previous file | talk/app/webrtc/java/src/org/webrtc/PeerConnectionFactory.java » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698