| Index: webrtc/api/peerconnection.cc
|
| diff --git a/webrtc/api/peerconnection.cc b/webrtc/api/peerconnection.cc
|
| index cc33aa88cebb6ce1473009115db4bdf711d51058..be614727b9fa50f9876167e2bfeff7602c6a730e 100644
|
| --- a/webrtc/api/peerconnection.cc
|
| +++ b/webrtc/api/peerconnection.cc
|
| @@ -31,10 +31,12 @@
|
| #include "webrtc/api/videocapturertracksource.h"
|
| #include "webrtc/api/videotrack.h"
|
| #include "webrtc/base/arraysize.h"
|
| +#include "webrtc/base/bind.h"
|
| #include "webrtc/base/logging.h"
|
| #include "webrtc/base/stringencode.h"
|
| #include "webrtc/base/stringutils.h"
|
| #include "webrtc/base/trace_event.h"
|
| +#include "webrtc/call.h"
|
| #include "webrtc/media/sctp/sctpdataengine.h"
|
| #include "webrtc/pc/channelmanager.h"
|
| #include "webrtc/system_wrappers/include/field_trial.h"
|
| @@ -1263,6 +1265,18 @@ void PeerConnection::RegisterUMAObserver(UMAObserver* observer) {
|
| }
|
| }
|
|
|
| +bool PeerConnection::StartRtcEventLog(rtc::PlatformFile file,
|
| + int64_t max_size_bytes) {
|
| + return factory_->worker_thread()->Invoke<bool>(
|
| + RTC_FROM_HERE, rtc::Bind(&PeerConnection::StartRtcEventLog_w, this, file,
|
| + max_size_bytes));
|
| +}
|
| +
|
| +void PeerConnection::StopRtcEventLog() {
|
| + factory_->worker_thread()->Invoke<void>(
|
| + RTC_FROM_HERE, rtc::Bind(&PeerConnection::StopRtcEventLog_w, this));
|
| +}
|
| +
|
| const SessionDescriptionInterface* PeerConnection::local_description() const {
|
| return session_->local_description();
|
| }
|
| @@ -2234,4 +2248,12 @@ bool PeerConnection::ReconfigurePortAllocator_n(
|
| return true;
|
| }
|
|
|
| +bool PeerConnection::StartRtcEventLog_w(rtc::PlatformFile file,
|
| + int64_t max_size_bytes) {
|
| + return media_controller_->call_w()->StartEventLog(file, max_size_bytes);
|
| +}
|
| +
|
| +void PeerConnection::StopRtcEventLog_w() {
|
| + media_controller_->call_w()->StopEventLog();
|
| +}
|
| } // namespace webrtc
|
|
|