Index: talk/app/webrtc/peerconnectioninterface.h |
diff --git a/talk/app/webrtc/peerconnectioninterface.h b/talk/app/webrtc/peerconnectioninterface.h |
index d3d0d9e66710d8a97cdf3b24529c2f3ac8c59085..f61f2f6c5c10a5629e3647ce76a374f67448af23 100644 |
--- a/talk/app/webrtc/peerconnectioninterface.h |
+++ b/talk/app/webrtc/peerconnectioninterface.h |
@@ -619,6 +619,22 @@ class PeerConnectionFactoryInterface : public rtc::RefCountInterface { |
// http://crbug.com/264611. |
virtual bool StartAecDump(rtc::PlatformFile file) = 0; |
+ // Starts RtcEventLog using existing file. Takes ownership of |file| and |
+ // passes it on to VoiceEngine, which will take the ownership. If the |
+ // operation fails the file will be closed. The logging will stop |
+ // automatically after 10 minutes have passed, or when the StopRtcEventLog |
+ // function is called. |
+ // This function as well as the StopRtcEventLog don't really belong on this |
+ // interface, this is a temporary solution until we move the logging object |
+ // from inside voice engine to webrtc::Call, which will happen when the VoE |
+ // restructuring effort is further along. |
+ // TODO(ivoc): Move this into being: |
+ // PeerConnection => MediaController => webrtc::Call. |
+ virtual bool StartRtcEventLog(rtc::PlatformFile file) = 0; |
+ |
+ // Stops logging the RtcEventLog. |
+ virtual void StopRtcEventLog() = 0; |
+ |
protected: |
// Dtor and ctor protected as objects shouldn't be created or deleted via |
// this interface. |