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

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: Added CONTENT_EXPORT to WebRTCEventLogHost. Created 4 years, 5 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 361948cde063a1c9bba884e2f733fecf44d9d6a8..fcf1b822cc5437a7a8b5c9feea4baeef1042bd75 100644
--- a/content/renderer/media/rtc_peer_connection_handler.cc
+++ b/content/renderer/media/rtc_peer_connection_handler.cc
@@ -1437,6 +1437,19 @@ void RTCPeerConnectionHandler::CloseClientPeerConnection() {
client_->closePeerConnection();
}
+void RTCPeerConnectionHandler::StartEventLog(IPC::PlatformFileForTransit file,
+ int64_t max_file_size_bytes) {
+ DCHECK(thread_checker_.CalledOnValidThread());
+ DCHECK(file != IPC::InvalidPlatformFileForTransit());
+ native_peer_connection_->StartRtcEventLog(
+ IPC::PlatformFileForTransitToPlatformFile(file), max_file_size_bytes);
+}
+
+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