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

Unified Diff: webrtc/voice_engine/channel_proxy.cc

Issue 1909333002: Switch voice transport to use Call and Stream instead of VoENetwork. (Closed) Base URL: https://chromium.googlesource.com/external/webrtc.git@master
Patch Set: Addressed coments on ps#6 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « webrtc/voice_engine/channel_proxy.h ('k') | webrtc/voice_engine/voe_network_impl.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: webrtc/voice_engine/channel_proxy.cc
diff --git a/webrtc/voice_engine/channel_proxy.cc b/webrtc/voice_engine/channel_proxy.cc
index 10c88212024aa2ea911c09ccb97bcb2fd15ca65e..4cc7f5cbbcdc61cd3f0c68481006ebb88703b4c4 100644
--- a/webrtc/voice_engine/channel_proxy.cc
+++ b/webrtc/voice_engine/channel_proxy.cc
@@ -158,6 +158,29 @@ void ChannelProxy::SetSink(std::unique_ptr<AudioSinkInterface> sink) {
channel()->SetSink(std::move(sink));
}
+void ChannelProxy::RegisterExternalTransport(Transport* transport) {
+ RTC_DCHECK(thread_checker_.CalledOnValidThread());
+ int error = channel()->RegisterExternalTransport(transport);
+ RTC_DCHECK_EQ(0, error);
+}
+
+void ChannelProxy::DeRegisterExternalTransport() {
+ RTC_DCHECK(thread_checker_.CalledOnValidThread());
+ channel()->DeRegisterExternalTransport();
+}
+
+bool ChannelProxy::ReceivedRTPPacket(const uint8_t* packet,
+ size_t length,
+ const PacketTime& packet_time) {
+ // May be called on either worker thread or network thread.
+ return channel()->ReceivedRTPPacket(packet, length, packet_time) == 0;
+}
+
+bool ChannelProxy::ReceivedRTCPPacket(const uint8_t* packet, size_t length) {
+ // May be called on either worker thread or network thread.
+ return channel()->ReceivedRTCPPacket(packet, length) == 0;
+}
+
Channel* ChannelProxy::channel() const {
RTC_DCHECK(channel_owner_.channel());
return channel_owner_.channel();
« no previous file with comments | « webrtc/voice_engine/channel_proxy.h ('k') | webrtc/voice_engine/voe_network_impl.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698