Add a parameter to set a maximum file size when starting an RTC event log on the PeerConnectionFactory API.

The caller can set a negative or zero file size to avoid using a limit.
BUG=

Review-Url: https://codereview.webrtc.org/1974453002
Cr-Commit-Position: refs/heads/master@{#12730}
diff --git a/webrtc/api/peerconnectioninterface.h b/webrtc/api/peerconnectioninterface.h
index fe0dc1d..68904e2 100644
--- a/webrtc/api/peerconnectioninterface.h
+++ b/webrtc/api/peerconnectioninterface.h
@@ -640,13 +640,18 @@
   // 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.
+  // function is called. A maximum filesize in bytes can be set, the logging
+  // will be stopped before exceeding this limit. If max_size_bytes is set to a
+  // value <= 0, no limit will be used.
   // 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,
+                                int64_t max_size_bytes) = 0;
+  // Deprecated, use the version above.
   virtual bool StartRtcEventLog(rtc::PlatformFile file) = 0;
 
   // Stops logging the RtcEventLog.