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

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

Issue 1537213002: Revert of Reland "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: 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 1262 matching lines...) Expand 10 before | Expand all | Expand 10 after
1273 jlong native_source) { 1273 jlong native_source) {
1274 rtc::scoped_refptr<PeerConnectionFactoryInterface> factory( 1274 rtc::scoped_refptr<PeerConnectionFactoryInterface> factory(
1275 factoryFromJava(native_factory)); 1275 factoryFromJava(native_factory));
1276 rtc::scoped_refptr<AudioTrackInterface> track(factory->CreateAudioTrack( 1276 rtc::scoped_refptr<AudioTrackInterface> track(factory->CreateAudioTrack(
1277 JavaToStdString(jni, id), 1277 JavaToStdString(jni, id),
1278 reinterpret_cast<AudioSourceInterface*>(native_source))); 1278 reinterpret_cast<AudioSourceInterface*>(native_source)));
1279 return (jlong)track.release(); 1279 return (jlong)track.release();
1280 } 1280 }
1281 1281
1282 JOW(jboolean, PeerConnectionFactory_nativeStartAecDump)( 1282 JOW(jboolean, PeerConnectionFactory_nativeStartAecDump)(
1283 JNIEnv* jni, jclass, jlong native_factory, jint file, 1283 JNIEnv* jni, jclass, jlong native_factory, jint file) {
1284 jint filesize_limit_bytes) {
1285 #if defined(ANDROID) 1284 #if defined(ANDROID)
1286 rtc::scoped_refptr<PeerConnectionFactoryInterface> factory( 1285 rtc::scoped_refptr<PeerConnectionFactoryInterface> factory(
1287 factoryFromJava(native_factory)); 1286 factoryFromJava(native_factory));
1288 return factory->StartAecDump(file, filesize_limit_bytes); 1287 return factory->StartAecDump(file);
1289 #else 1288 #else
1290 return false; 1289 return false;
1291 #endif 1290 #endif
1292 } 1291 }
1293 1292
1294 JOW(void, PeerConnectionFactory_nativeStopAecDump)( 1293 JOW(void, PeerConnectionFactory_nativeStopAecDump)(
1295 JNIEnv* jni, jclass, jlong native_factory) { 1294 JNIEnv* jni, jclass, jlong native_factory) {
1296 #if defined(ANDROID) 1295 #if defined(ANDROID)
1297 rtc::scoped_refptr<PeerConnectionFactoryInterface> factory( 1296 rtc::scoped_refptr<PeerConnectionFactoryInterface> factory(
1298 factoryFromJava(native_factory)); 1297 factoryFromJava(native_factory));
(...skipping 865 matching lines...) Expand 10 before | Expand all | Expand 10 after
2164 return JavaStringFromStdString( 2163 return JavaStringFromStdString(
2165 jni, 2164 jni,
2166 reinterpret_cast<RtpReceiverInterface*>(j_rtp_receiver_pointer)->id()); 2165 reinterpret_cast<RtpReceiverInterface*>(j_rtp_receiver_pointer)->id());
2167 } 2166 }
2168 2167
2169 JOW(void, RtpReceiver_free)(JNIEnv* jni, jclass, jlong j_rtp_receiver_pointer) { 2168 JOW(void, RtpReceiver_free)(JNIEnv* jni, jclass, jlong j_rtp_receiver_pointer) {
2170 reinterpret_cast<RtpReceiverInterface*>(j_rtp_receiver_pointer)->Release(); 2169 reinterpret_cast<RtpReceiverInterface*>(j_rtp_receiver_pointer)->Release();
2171 } 2170 }
2172 2171
2173 } // namespace webrtc_jni 2172 } // 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