#ifdef UNSAFE_BUFFERS_BUILD
#pragma allow_unsafe_buffers
#endif
#include "third_party/blink/renderer/modules/peerconnection/rtc_rtp_transport.h"
#include "third_party/blink/renderer/core/frame/local_dom_window.h"
#include "third_party/blink/renderer/modules/peerconnection/adapters/web_rtc_cross_thread_copier.h"
#include "third_party/blink/renderer/modules/peerconnection/peer_connection_dependency_factory.h"
#include "third_party/blink/renderer/platform/peerconnection/webrtc_util.h"
#include "third_party/blink/renderer/platform/scheduler/public/post_cross_thread_task.h"
#include "third_party/blink/renderer/platform/wtf/casting.h"
#include "third_party/blink/renderer/platform/wtf/cross_thread_copier_base.h"
#include "third_party/blink/renderer/platform/wtf/cross_thread_functional.h"
namespace WTF {
template <>
struct CrossThreadCopier<Vector<scoped_refptr<blink::FeedbackProvider>>>
: public CrossThreadCopierPassThrough<
Vector<scoped_refptr<blink::FeedbackProvider>>> { … };
}
namespace blink {
Event* CreateEvent(
CrossThreadWeakHandle<RTCRtpTransport> rtp_transport,
scoped_refptr<base::SequencedTaskRunner> rtp_transport_task_runner,
ScriptState* script_state,
CustomEventMessage data) { … }
RTCRtpTransport::RTCRtpTransport(ExecutionContext* context)
: … { … }
RTCRtpTransport::~RTCRtpTransport() = default;
void RTCRtpTransport::createProcessor(ScriptState* script_state,
DedicatedWorker* worker,
ExceptionState& exception_state) { … }
void RTCRtpTransport::createProcessor(ScriptState* script_state,
DedicatedWorker* worker,
const ScriptValue& options,
ExceptionState& exception_state) { … }
void RTCRtpTransport::createProcessor(ScriptState* script_state,
DedicatedWorker* worker,
const ScriptValue& options,
HeapVector<ScriptValue>& transfer,
ExceptionState& exception_state) { … }
void RTCRtpTransport::RegisterFeedbackProvider(
scoped_refptr<FeedbackProvider> feedback_provider) { … }
void RTCRtpTransport::SetProcessorHandle(
CrossThreadWeakHandle<RTCRtpTransportProcessor> processor,
scoped_refptr<base::SequencedTaskRunner> processor_task_runner) { … }
void RTCRtpTransport::Trace(Visitor* visitor) const { … }
}