| Index: talk/app/webrtc/java/src/org/webrtc/PeerConnectionFactory.java
|
| diff --git a/talk/app/webrtc/java/src/org/webrtc/PeerConnectionFactory.java b/talk/app/webrtc/java/src/org/webrtc/PeerConnectionFactory.java
|
| index c2eff1a45211e152387e8792fd7ff87672e5b295..d759c692718288276082a77e469877f968bb2df3 100644
|
| --- a/talk/app/webrtc/java/src/org/webrtc/PeerConnectionFactory.java
|
| +++ b/talk/app/webrtc/java/src/org/webrtc/PeerConnectionFactory.java
|
| @@ -73,6 +73,15 @@ public class PeerConnectionFactory {
|
| // Field trial initialization. Must be called before PeerConnectionFactory
|
| // is created.
|
| public static native void initializeFieldTrials(String fieldTrialsInitString);
|
| + // Internal tracing initialization. Must be called before PeerConnectionFactory is created to
|
| + // prevent racing with tracing code.
|
| + public static native void initializeInternalTracer();
|
| + // Internal tracing shutdown, called to prevent resource leaks. Must be called after
|
| + // PeerConnectionFactory is gone to prevent races with code performing tracing.
|
| + public static native void shutdownInternalTracer();
|
| + // Start/stop internal capturing of internal tracing.
|
| + public static native boolean startInternalTracingCapture(String tracing_filename);
|
| + public static native void stopInternalTracingCapture();
|
|
|
| public PeerConnectionFactory() {
|
| nativeFactory = nativeCreatePeerConnectionFactory();
|
|
|