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

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: Remove VoENetwork from perf test. 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
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..c4f38ba54d40b8f97aaa0bae2385522cf24ad383 100644
--- a/webrtc/voice_engine/channel_proxy.cc
+++ b/webrtc/voice_engine/channel_proxy.cc
@@ -158,6 +158,24 @@ void ChannelProxy::SetSink(std::unique_ptr<AudioSinkInterface> sink) {
channel()->SetSink(std::move(sink));
}
+void ChannelProxy::RegisterExternalTransport(Transport* transport) {
the sun 2016/04/22 12:40:32 Add: RTC_DCHECK(thread_checker_.CalledOnValidThrea
mflodman 2016/04/27 13:42:18 Done.
+ channel()->RegisterExternalTransport(*transport);
the sun 2016/04/22 12:40:32 Change Channel::RegisterExternalTransport() to tak
mflodman 2016/04/27 13:42:18 Done. And agree is should be safe, but the logic c
+}
+
+void ChannelProxy::DeRegisterExternalTransport() {
the sun 2016/04/22 12:40:32 Add: RTC_DCHECK(thread_checker_.CalledOnValidThrea
mflodman 2016/04/27 13:42:18 Done.
+ channel()->DeRegisterExternalTransport();
+}
+
+bool ChannelProxy::ReceivedRTPPacket(const uint8_t* packet,
+ size_t length,
+ const PacketTime& packet_time) {
the sun 2016/04/22 12:40:32 Add: // May be called on either worker thread or n
mflodman 2016/04/27 13:42:18 Done.
+ return channel()->ReceivedRTPPacket(packet, length, packet_time) == 0;
+}
+
+bool ChannelProxy::ReceivedRTCPPacket(const uint8_t* packet, size_t length) {
+ return channel()->ReceivedRTCPPacket(packet, length) == 0;
+}
+
Channel* ChannelProxy::channel() const {
RTC_DCHECK(channel_owner_.channel());
return channel_owner_.channel();

Powered by Google App Engine
This is Rietveld 408576698