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

Side by Side Diff: talk/media/base/mediachannel.h

Issue 1363573002: Wire up transport sequence number / send time callbacks to webrtc via libjingle. (Closed) Base URL: https://chromium.googlesource.com/external/webrtc.git@master
Patch Set: . Created 5 years, 2 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 unified diff | Download patch
OLDNEW
1 /* 1 /*
2 * libjingle 2 * libjingle
3 * Copyright 2004 Google Inc. 3 * Copyright 2004 Google Inc.
4 * 4 *
5 * Redistribution and use in source and binary forms, with or without 5 * Redistribution and use in source and binary forms, with or without
6 * modification, are permitted provided that the following conditions are met: 6 * modification, are permitted provided that the following conditions are met:
7 * 7 *
8 * 1. Redistributions of source code must retain the above copyright notice, 8 * 1. Redistributions of source code must retain the above copyright notice,
9 * this list of conditions and the following disclaimer. 9 * this list of conditions and the following disclaimer.
10 * 2. Redistributions in binary form must reproduce the above copyright notice, 10 * 2. Redistributions in binary form must reproduce the above copyright notice,
(...skipping 531 matching lines...) Expand 10 before | Expand all | Expand 10 after
542 rtc::CritScope cs(&network_interface_crit_); 542 rtc::CritScope cs(&network_interface_crit_);
543 network_interface_ = iface; 543 network_interface_ = iface;
544 } 544 }
545 545
546 // Called when a RTP packet is received. 546 // Called when a RTP packet is received.
547 virtual void OnPacketReceived(rtc::Buffer* packet, 547 virtual void OnPacketReceived(rtc::Buffer* packet,
548 const rtc::PacketTime& packet_time) = 0; 548 const rtc::PacketTime& packet_time) = 0;
549 // Called when a RTCP packet is received. 549 // Called when a RTCP packet is received.
550 virtual void OnRtcpReceived(rtc::Buffer* packet, 550 virtual void OnRtcpReceived(rtc::Buffer* packet,
551 const rtc::PacketTime& packet_time) = 0; 551 const rtc::PacketTime& packet_time) = 0;
552 virtual void OnPacketSent(const rtc::SentPacket& packet_sent) = 0;
pthatcher1 2015/09/25 23:24:57 Can you just make this default to {}, so we don't
stefan-webrtc 2015/09/28 12:10:49 Great suggestion. :)
552 // Called when the socket's ability to send has changed. 553 // Called when the socket's ability to send has changed.
553 virtual void OnReadyToSend(bool ready) = 0; 554 virtual void OnReadyToSend(bool ready) = 0;
554 // Creates a new outgoing media stream with SSRCs and CNAME as described 555 // Creates a new outgoing media stream with SSRCs and CNAME as described
555 // by sp. 556 // by sp.
556 virtual bool AddSendStream(const StreamParams& sp) = 0; 557 virtual bool AddSendStream(const StreamParams& sp) = 0;
557 // Removes an outgoing media stream. 558 // Removes an outgoing media stream.
558 // ssrc must be the first SSRC of the media stream if the stream uses 559 // ssrc must be the first SSRC of the media stream if the stream uses
559 // multiple SSRCs. 560 // multiple SSRCs.
560 virtual bool RemoveSendStream(uint32 ssrc) = 0; 561 virtual bool RemoveSendStream(uint32 ssrc) = 0;
561 // Creates a new incoming media stream with SSRCs and CNAME as described 562 // Creates a new incoming media stream with SSRCs and CNAME as described
(...skipping 729 matching lines...) Expand 10 before | Expand all | Expand 10 after
1291 // Signal when the media channel is ready to send the stream. Arguments are: 1292 // Signal when the media channel is ready to send the stream. Arguments are:
1292 // writable(bool) 1293 // writable(bool)
1293 sigslot::signal1<bool> SignalReadyToSend; 1294 sigslot::signal1<bool> SignalReadyToSend;
1294 // Signal for notifying that the remote side has closed the DataChannel. 1295 // Signal for notifying that the remote side has closed the DataChannel.
1295 sigslot::signal1<uint32> SignalStreamClosedRemotely; 1296 sigslot::signal1<uint32> SignalStreamClosedRemotely;
1296 }; 1297 };
1297 1298
1298 } // namespace cricket 1299 } // namespace cricket
1299 1300
1300 #endif // TALK_MEDIA_BASE_MEDIACHANNEL_H_ 1301 #endif // TALK_MEDIA_BASE_MEDIACHANNEL_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698