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

Side by Side Diff: talk/app/webrtc/objc/public/RTCDataChannel.h

Issue 1207613006: Support for onbufferedamountlow (Closed) Base URL: https://chromium.googlesource.com/external/webrtc/trunk/talk.git@master
Patch Set: Add Objective C bindings Created 5 years, 5 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 2014 Google Inc. 3 * Copyright 2014 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 60 matching lines...) Expand 10 before | Expand all | Expand 10 after
71 kRTCDataChannelStateClosed 71 kRTCDataChannelStateClosed
72 } RTCDataChannelState; 72 } RTCDataChannelState;
73 73
74 @class RTCDataChannel; 74 @class RTCDataChannel;
75 // Protocol for receving data channel state and message events. 75 // Protocol for receving data channel state and message events.
76 @protocol RTCDataChannelDelegate<NSObject> 76 @protocol RTCDataChannelDelegate<NSObject>
77 77
78 // Called when the data channel state has changed. 78 // Called when the data channel state has changed.
79 - (void)channelDidChangeState:(RTCDataChannel*)channel; 79 - (void)channelDidChangeState:(RTCDataChannel*)channel;
80 80
81 // Called when the data channel state has changed.
82 - (void)channelDidChangeBufferedAmount:(RTCDataChannel*)channel
tkchin_webrtc 2015/06/29 22:18:30 Update comment? Style: - (void)channel:(RTCDataCha
bemasc2 2015/06/29 22:53:17 Done.
83 previousAmount:(NSUInteger)amount;
84
81 // Called when a data buffer was successfully received. 85 // Called when a data buffer was successfully received.
82 - (void)channel:(RTCDataChannel*)channel 86 - (void)channel:(RTCDataChannel*)channel
83 didReceiveMessageWithBuffer:(RTCDataBuffer*)buffer; 87 didReceiveMessageWithBuffer:(RTCDataBuffer*)buffer;
84 88
85 @end 89 @end
86 90
87 // ObjectiveC wrapper for a DataChannel object. 91 // ObjectiveC wrapper for a DataChannel object.
88 // See talk/app/webrtc/datachannelinterface.h 92 // See talk/app/webrtc/datachannelinterface.h
89 @interface RTCDataChannel : NSObject 93 @interface RTCDataChannel : NSObject
90 94
(...skipping 12 matching lines...) Expand all
103 - (void)close; 107 - (void)close;
104 - (BOOL)sendData:(RTCDataBuffer*)data; 108 - (BOOL)sendData:(RTCDataBuffer*)data;
105 109
106 #ifndef DOXYGEN_SHOULD_SKIP_THIS 110 #ifndef DOXYGEN_SHOULD_SKIP_THIS
107 // Disallow init and don't add to documentation 111 // Disallow init and don't add to documentation
108 - (id)init __attribute__(( 112 - (id)init __attribute__((
109 unavailable("init is not a supported initializer for this class."))); 113 unavailable("init is not a supported initializer for this class.")));
110 #endif /* DOXYGEN_SHOULD_SKIP_THIS */ 114 #endif /* DOXYGEN_SHOULD_SKIP_THIS */
111 115
112 @end 116 @end
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698