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

Unified Diff: webrtc/api/objc/RTCDataChannel.h

Issue 1845133002: Minor ObjC header updates. (Closed) Base URL: https://chromium.googlesource.com/external/webrtc.git@master
Patch Set: Created 4 years, 9 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/api/objc/RTCAudioTrack+Private.h ('k') | webrtc/api/objc/RTCDataChannel.mm » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: webrtc/api/objc/RTCDataChannel.h
diff --git a/webrtc/api/objc/RTCDataChannel.h b/webrtc/api/objc/RTCDataChannel.h
index 43f576770236fa5059f9778cd0b7d20c3c390830..59ab2b8b26fddf9706e85d46dfddf5ab4b8daa3b 100644
--- a/webrtc/api/objc/RTCDataChannel.h
+++ b/webrtc/api/objc/RTCDataChannel.h
@@ -8,6 +8,7 @@
* be found in the AUTHORS file in the root of the source tree.
*/
+#import <AvailabilityMacros.h>
#import <Foundation/Foundation.h>
NS_ASSUME_NONNULL_BEGIN
@@ -32,7 +33,6 @@ NS_ASSUME_NONNULL_BEGIN
@class RTCDataChannel;
-
@protocol RTCDataChannelDelegate <NSObject>
/** The data channel state changed. */
@@ -43,7 +43,6 @@ NS_ASSUME_NONNULL_BEGIN
didReceiveMessageWithBuffer:(RTCDataBuffer *)buffer;
@optional
-
/** The data channel's |bufferedAmount| changed. */
- (void)dataChannel:(RTCDataChannel *)dataChannel
didChangeBufferedAmount:(uint64_t)amount;
@@ -53,12 +52,13 @@ NS_ASSUME_NONNULL_BEGIN
/** Represents the state of the data channel. */
typedef NS_ENUM(NSInteger, RTCDataChannelState) {
- RTCDataChannelStateConnecting,
- RTCDataChannelStateOpen,
- RTCDataChannelStateClosing,
- RTCDataChannelStateClosed,
+ RTCDataChannelStateConnecting,
+ RTCDataChannelStateOpen,
+ RTCDataChannelStateClosing,
+ RTCDataChannelStateClosed,
};
+
@interface RTCDataChannel : NSObject
/**
@@ -67,9 +67,16 @@ typedef NS_ENUM(NSInteger, RTCDataChannelState) {
*/
@property(nonatomic, readonly) NSString *label;
+/** Whether the data channel can send messages in unreliable mode. */
+@property(nonatomic, readonly) BOOL isReliable DEPRECATED_ATTRIBUTE;
+
/** Returns whether this data channel is ordered or not. */
@property(nonatomic, readonly) BOOL isOrdered;
+/** Deprecated. Use maxPacketLifeTime. */
+@property(nonatomic, readonly) NSUInteger maxRetransmitTime
+ DEPRECATED_ATTRIBUTE;
+
/**
* The length of the time window (in milliseconds) during which transmissions
* and retransmissions may occur in unreliable mode.
@@ -92,6 +99,9 @@ typedef NS_ENUM(NSInteger, RTCDataChannelState) {
*/
@property(nonatomic, readonly) BOOL isNegotiated;
+/** Deprecated. Use channelId. */
+@property(nonatomic, readonly) NSInteger streamId DEPRECATED_ATTRIBUTE;
+
/** The identifier for this data channel. */
@property(nonatomic, readonly) int channelId;
« no previous file with comments | « webrtc/api/objc/RTCAudioTrack+Private.h ('k') | webrtc/api/objc/RTCDataChannel.mm » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698