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

Unified Diff: talk/app/webrtc/objc/RTCDataChannel.mm

Issue 1207613006: Support for onbufferedamountlow (Closed) Base URL: https://chromium.googlesource.com/external/webrtc/trunk/talk.git@master
Patch Set: Remove unnecessary comment Created 5 years, 6 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: talk/app/webrtc/objc/RTCDataChannel.mm
diff --git a/talk/app/webrtc/objc/RTCDataChannel.mm b/talk/app/webrtc/objc/RTCDataChannel.mm
index 4fb03c284ebbb7e2e1ca8427bfabfee882cfc54f..8a9b6b6095af8dc8bcd6aa09ec4798a6c87c5898 100644
--- a/talk/app/webrtc/objc/RTCDataChannel.mm
+++ b/talk/app/webrtc/objc/RTCDataChannel.mm
@@ -43,6 +43,15 @@ class RTCDataChannelObserver : public DataChannelObserver {
[_channel.delegate channelDidChangeState:_channel];
}
+ void OnBufferedAmountChange(uint64 previousAmount) override {
+ RTCDataChannel* channel = _channel;
+ id<RTCDataChannelDelegate> delegate = channel.delegate;
+ if ([delegate
+ respondsToSelector:@selector(channel:didChangeBufferedAmount:)]) {
+ [delegate channel:channel didChangeBufferedAmount:previousAmount];
+ }
+ }
+
void OnMessage(const DataBuffer& buffer) override {
if (!_channel.delegate) {
return;
« no previous file with comments | « talk/app/webrtc/java/testcommon/src/org/webrtc/PeerConnectionTest.java ('k') | talk/app/webrtc/objc/public/RTCDataChannel.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698