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

Side by Side Diff: webrtc/api/peerconnection.cc

Issue 2515653002: Convert rtc_event_log from webrtc::Clock to rtc::TimeMicros. (Closed)
Patch Set: Created 4 years, 1 month 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 /* 1 /*
2 * Copyright 2012 The WebRTC project authors. All Rights Reserved. 2 * Copyright 2012 The WebRTC project authors. All Rights Reserved.
3 * 3 *
4 * Use of this source code is governed by a BSD-style license 4 * Use of this source code is governed by a BSD-style license
5 * that can be found in the LICENSE file in the root of the source 5 * that can be found in the LICENSE file in the root of the source
6 * tree. An additional intellectual property rights grant can be found 6 * tree. An additional intellectual property rights grant can be found
7 * in the file PATENTS. All contributing project authors may 7 * in the file PATENTS. All contributing project authors may
8 * be found in the AUTHORS file in the root of the source tree. 8 * be found in the AUTHORS file in the root of the source tree.
9 */ 9 */
10 10
(...skipping 22 matching lines...) Expand all
33 #include "webrtc/base/arraysize.h" 33 #include "webrtc/base/arraysize.h"
34 #include "webrtc/base/bind.h" 34 #include "webrtc/base/bind.h"
35 #include "webrtc/base/logging.h" 35 #include "webrtc/base/logging.h"
36 #include "webrtc/base/stringencode.h" 36 #include "webrtc/base/stringencode.h"
37 #include "webrtc/base/stringutils.h" 37 #include "webrtc/base/stringutils.h"
38 #include "webrtc/base/trace_event.h" 38 #include "webrtc/base/trace_event.h"
39 #include "webrtc/call.h" 39 #include "webrtc/call.h"
40 #include "webrtc/logging/rtc_event_log/rtc_event_log.h" 40 #include "webrtc/logging/rtc_event_log/rtc_event_log.h"
41 #include "webrtc/media/sctp/sctpdataengine.h" 41 #include "webrtc/media/sctp/sctpdataengine.h"
42 #include "webrtc/pc/channelmanager.h" 42 #include "webrtc/pc/channelmanager.h"
43 #include "webrtc/system_wrappers/include/clock.h"
44 #include "webrtc/system_wrappers/include/field_trial.h" 43 #include "webrtc/system_wrappers/include/field_trial.h"
45 44
46 namespace { 45 namespace {
47 46
48 using webrtc::DataChannel; 47 using webrtc::DataChannel;
49 using webrtc::MediaConstraintsInterface; 48 using webrtc::MediaConstraintsInterface;
50 using webrtc::MediaStreamInterface; 49 using webrtc::MediaStreamInterface;
51 using webrtc::PeerConnectionInterface; 50 using webrtc::PeerConnectionInterface;
52 using webrtc::RtpSenderInternal; 51 using webrtc::RtpSenderInternal;
53 using webrtc::RtpSenderInterface; 52 using webrtc::RtpSenderInterface;
(...skipping 511 matching lines...) Expand 10 before | Expand all | Expand 10 after
565 return true; 564 return true;
566 } 565 }
567 566
568 PeerConnection::PeerConnection(PeerConnectionFactory* factory) 567 PeerConnection::PeerConnection(PeerConnectionFactory* factory)
569 : factory_(factory), 568 : factory_(factory),
570 observer_(NULL), 569 observer_(NULL),
571 uma_observer_(NULL), 570 uma_observer_(NULL),
572 signaling_state_(kStable), 571 signaling_state_(kStable),
573 ice_connection_state_(kIceConnectionNew), 572 ice_connection_state_(kIceConnectionNew),
574 ice_gathering_state_(kIceGatheringNew), 573 ice_gathering_state_(kIceGatheringNew),
575 event_log_(RtcEventLog::Create(webrtc::Clock::GetRealTimeClock())), 574 event_log_(RtcEventLog::Create()),
576 rtcp_cname_(GenerateRtcpCname()), 575 rtcp_cname_(GenerateRtcpCname()),
577 local_streams_(StreamCollection::Create()), 576 local_streams_(StreamCollection::Create()),
578 remote_streams_(StreamCollection::Create()) {} 577 remote_streams_(StreamCollection::Create()) {}
579 578
580 PeerConnection::~PeerConnection() { 579 PeerConnection::~PeerConnection() {
581 TRACE_EVENT0("webrtc", "PeerConnection::~PeerConnection"); 580 TRACE_EVENT0("webrtc", "PeerConnection::~PeerConnection");
582 RTC_DCHECK(signaling_thread()->IsCurrent()); 581 RTC_DCHECK(signaling_thread()->IsCurrent());
583 // Need to detach RTP senders/receivers from WebRtcSession, 582 // Need to detach RTP senders/receivers from WebRtcSession,
584 // since it's about to be destroyed. 583 // since it's about to be destroyed.
585 for (const auto& sender : senders_) { 584 for (const auto& sender : senders_) {
(...skipping 1781 matching lines...) Expand 10 before | Expand all | Expand 10 after
2367 2366
2368 bool PeerConnection::StartRtcEventLog_w(rtc::PlatformFile file, 2367 bool PeerConnection::StartRtcEventLog_w(rtc::PlatformFile file,
2369 int64_t max_size_bytes) { 2368 int64_t max_size_bytes) {
2370 return event_log_->StartLogging(file, max_size_bytes); 2369 return event_log_->StartLogging(file, max_size_bytes);
2371 } 2370 }
2372 2371
2373 void PeerConnection::StopRtcEventLog_w() { 2372 void PeerConnection::StopRtcEventLog_w() {
2374 event_log_->StopLogging(); 2373 event_log_->StopLogging();
2375 } 2374 }
2376 } // namespace webrtc 2375 } // namespace webrtc
OLDNEW
« no previous file with comments | « no previous file | webrtc/logging/rtc_event_log/rtc_event_log.h » ('j') | webrtc/logging/rtc_event_log/rtc_event_log.cc » ('J')

Powered by Google App Engine
This is Rietveld 408576698