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

Side by Side Diff: webrtc/api/objc/RTCDataChannelConfiguration.mm

Issue 1845133002: Minor ObjC header updates. (Closed) Base URL: https://chromium.googlesource.com/external/webrtc.git@master
Patch Set: 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 unified diff | Download patch
« no previous file with comments | « webrtc/api/objc/RTCDataChannelConfiguration.h ('k') | webrtc/api/objc/RTCVideoFrame.h » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 /* 1 /*
2 * Copyright 2015 The WebRTC project authors. All Rights Reserved. 2 * Copyright 2015 The WebRTC project authors. All Rights Reserved.
3 * 3 *
4 * Use of this source code is governed by a BSD-style license 4 * Use of this source code is governed by a BSD-style license
5 * that can be found in the LICENSE file in the root of the source 5 * that can be found in the LICENSE file in the root of the source
6 * tree. An additional intellectual property rights grant can be found 6 * tree. An additional intellectual property rights grant can be found
7 * in the file PATENTS. All contributing project authors may 7 * in the file PATENTS. All contributing project authors may
8 * be found in the AUTHORS file in the root of the source tree. 8 * be found in the AUTHORS file in the root of the source tree.
9 */ 9 */
10 10
11 #import "RTCDataChannelConfiguration.h" 11 #import "RTCDataChannelConfiguration.h"
12 12
13 #import "webrtc/api/objc/RTCDataChannelConfiguration+Private.h" 13 #import "webrtc/api/objc/RTCDataChannelConfiguration+Private.h"
14 #import "webrtc/base/objc/NSString+StdString.h" 14 #import "webrtc/base/objc/NSString+StdString.h"
15 15
16 @implementation RTCDataChannelConfiguration 16 @implementation RTCDataChannelConfiguration
17 17
18 @synthesize nativeDataChannelInit = _nativeDataChannelInit; 18 @synthesize nativeDataChannelInit = _nativeDataChannelInit;
19 19
20 - (BOOL)isOrdered { 20 - (BOOL)isOrdered {
21 return _nativeDataChannelInit.ordered; 21 return _nativeDataChannelInit.ordered;
22 } 22 }
23 23
24 - (void)setIsOrdered:(BOOL)isOrdered { 24 - (void)setIsOrdered:(BOOL)isOrdered {
25 _nativeDataChannelInit.ordered = isOrdered; 25 _nativeDataChannelInit.ordered = isOrdered;
26 } 26 }
27 27
28 - (NSInteger)maxRetransmitTimeMs {
29 return self.maxPacketLifeTime;
30 }
31
32 - (void)setMaxRetransmitTimeMs:(NSInteger)maxRetransmitTimeMs {
33 self.maxPacketLifeTime = maxRetransmitTimeMs;
34 }
35
28 - (int)maxPacketLifeTime { 36 - (int)maxPacketLifeTime {
29 return _nativeDataChannelInit.maxRetransmitTime; 37 return _nativeDataChannelInit.maxRetransmitTime;
30 } 38 }
31 39
32 - (void)setMaxPacketLifeTime:(int)maxPacketLifeTime { 40 - (void)setMaxPacketLifeTime:(int)maxPacketLifeTime {
33 _nativeDataChannelInit.maxRetransmitTime = maxPacketLifeTime; 41 _nativeDataChannelInit.maxRetransmitTime = maxPacketLifeTime;
34 } 42 }
35 43
36 - (int)maxRetransmits { 44 - (int)maxRetransmits {
37 return _nativeDataChannelInit.maxRetransmits; 45 return _nativeDataChannelInit.maxRetransmits;
(...skipping 13 matching lines...) Expand all
51 59
52 - (BOOL)isNegotiated { 60 - (BOOL)isNegotiated {
53 return _nativeDataChannelInit.negotiated; 61 return _nativeDataChannelInit.negotiated;
54 } 62 }
55 63
56 - (void)setIsNegotiated:(BOOL)isNegotiated { 64 - (void)setIsNegotiated:(BOOL)isNegotiated {
57 _nativeDataChannelInit.negotiated = isNegotiated; 65 _nativeDataChannelInit.negotiated = isNegotiated;
58 } 66 }
59 67
60 - (int)streamId { 68 - (int)streamId {
69 return self.channelId;
70 }
71
72 - (void)setStreamId:(int)streamId {
73 self.channelId = streamId;
74 }
75
76 - (int)channelId {
61 return _nativeDataChannelInit.id; 77 return _nativeDataChannelInit.id;
62 } 78 }
63 79
64 - (void)setStreamId:(int)streamId { 80 - (void)setChannelId:(int)channelId {
65 _nativeDataChannelInit.id = streamId; 81 _nativeDataChannelInit.id = channelId;
66 } 82 }
67 83
68 @end 84 @end
OLDNEW
« no previous file with comments | « webrtc/api/objc/RTCDataChannelConfiguration.h ('k') | webrtc/api/objc/RTCVideoFrame.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698