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

Side by Side 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 limit to number of log files and the size of the log files. Created 4 years, 8 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 unified diff | Download patch
OLDNEW
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2012 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #include "content/renderer/media/rtc_peer_connection_handler.h" 5 #include "content/renderer/media/rtc_peer_connection_handler.h"
6 6
7 #include <string.h> 7 #include <string.h>
8 8
9 #include <string> 9 #include <string>
10 #include <utility> 10 #include <utility>
(...skipping 1433 matching lines...) Expand 10 before | Expand all | Expand 10 after
1444 base::Bind(&GetStatsOnSignalingThread, native_peer_connection_, level, 1444 base::Bind(&GetStatsOnSignalingThread, native_peer_connection_, level,
1445 make_scoped_refptr(observer), track_id, track_type)); 1445 make_scoped_refptr(observer), track_id, track_type));
1446 } 1446 }
1447 1447
1448 void RTCPeerConnectionHandler::CloseClientPeerConnection() { 1448 void RTCPeerConnectionHandler::CloseClientPeerConnection() {
1449 DCHECK(thread_checker_.CalledOnValidThread()); 1449 DCHECK(thread_checker_.CalledOnValidThread());
1450 if (!is_closed_) 1450 if (!is_closed_)
1451 client_->closePeerConnection(); 1451 client_->closePeerConnection();
1452 } 1452 }
1453 1453
1454 void RTCPeerConnectionHandler::StartEventLog(IPC::PlatformFileForTransit file,
1455 int64_t max_file_size_bytes) {
1456 DCHECK(thread_checker_.CalledOnValidThread());
1457 native_peer_connection_->StartRtcEventLog(file, max_file_size_bytes);
1458 }
1459
1460 void RTCPeerConnectionHandler::StopEventLog() {
1461 DCHECK(thread_checker_.CalledOnValidThread());
1462 native_peer_connection_->StopRtcEventLog();
1463 }
1464
1454 blink::WebRTCDataChannelHandler* RTCPeerConnectionHandler::createDataChannel( 1465 blink::WebRTCDataChannelHandler* RTCPeerConnectionHandler::createDataChannel(
1455 const blink::WebString& label, const blink::WebRTCDataChannelInit& init) { 1466 const blink::WebString& label, const blink::WebRTCDataChannelInit& init) {
1456 DCHECK(thread_checker_.CalledOnValidThread()); 1467 DCHECK(thread_checker_.CalledOnValidThread());
1457 TRACE_EVENT0("webrtc", "RTCPeerConnectionHandler::createDataChannel"); 1468 TRACE_EVENT0("webrtc", "RTCPeerConnectionHandler::createDataChannel");
1458 DVLOG(1) << "createDataChannel label " 1469 DVLOG(1) << "createDataChannel label "
1459 << base::UTF16ToUTF8(base::StringPiece16(label)); 1470 << base::UTF16ToUTF8(base::StringPiece16(label));
1460 1471
1461 webrtc::DataChannelInit config; 1472 webrtc::DataChannelInit config;
1462 // TODO(jiayl): remove the deprecated reliable field once Libjingle is updated 1473 // TODO(jiayl): remove the deprecated reliable field once Libjingle is updated
1463 // to handle that. 1474 // to handle that.
(...skipping 336 matching lines...) Expand 10 before | Expand all | Expand 10 after
1800 } 1811 }
1801 1812
1802 void RTCPeerConnectionHandler::ResetUMAStats() { 1813 void RTCPeerConnectionHandler::ResetUMAStats() {
1803 DCHECK(thread_checker_.CalledOnValidThread()); 1814 DCHECK(thread_checker_.CalledOnValidThread());
1804 num_local_candidates_ipv6_ = 0; 1815 num_local_candidates_ipv6_ = 0;
1805 num_local_candidates_ipv4_ = 0; 1816 num_local_candidates_ipv4_ = 0;
1806 ice_connection_checking_start_ = base::TimeTicks(); 1817 ice_connection_checking_start_ = base::TimeTicks();
1807 memset(ice_state_seen_, 0, sizeof(ice_state_seen_)); 1818 memset(ice_state_seen_, 0, sizeof(ice_state_seen_));
1808 } 1819 }
1809 } // namespace content 1820 } // namespace content
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698