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

Unified Diff: content/renderer/media/rtc_peer_connection_handler.cc

Issue 1855193002: Move the call to enable the WebRTC event log from PeerConnectionFactory to PeerConnection. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Merge with existing WebRtcEventLogHandler. Created 4 years, 7 months 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 side-by-side diff with in-line comments
Download patch
Index: content/renderer/media/rtc_peer_connection_handler.cc
diff --git a/content/renderer/media/rtc_peer_connection_handler.cc b/content/renderer/media/rtc_peer_connection_handler.cc
index 6b12cd114bd4f93f728e432140268deb66da2f77..d71d00c5248078678252c12ed60d5395fdde4573 100644
--- a/content/renderer/media/rtc_peer_connection_handler.cc
+++ b/content/renderer/media/rtc_peer_connection_handler.cc
@@ -1447,6 +1447,18 @@ void RTCPeerConnectionHandler::CloseClientPeerConnection() {
client_->closePeerConnection();
}
+void RTCPeerConnectionHandler::StartEventLog(IPC::PlatformFileForTransit file,
+ int64_t max_file_size_bytes) {
+ DCHECK(thread_checker_.CalledOnValidThread());
+ native_peer_connection_->StartRtcEventLog(
+ IPC::PlatformFileForTransitToPlatformFile(file), max_file_size_bytes);
Henrik Grunell 2016/05/10 08:44:56 DCHECK the file and size here or somewhere in the
Ivo-OOO until feb 6 2016/05/12 13:23:24 I added a DCHECK for the file, but the size can ac
+}
+
+void RTCPeerConnectionHandler::StopEventLog() {
+ DCHECK(thread_checker_.CalledOnValidThread());
+ native_peer_connection_->StopRtcEventLog();
+}
+
blink::WebRTCDataChannelHandler* RTCPeerConnectionHandler::createDataChannel(
const blink::WebString& label, const blink::WebRTCDataChannelInit& init) {
DCHECK(thread_checker_.CalledOnValidThread());

Powered by Google App Engine
This is Rietveld 408576698