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

Unified Diff: webrtc/sdk/objc/Framework/Classes/RTCIceCandidate.mm

Issue 2688943003: Add the URL attribute to cricket::Candiate. (Objc wrapper) (Closed)
Patch Set: Revert unnecessary changes. Created 3 years, 10 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/jsepicecandidate.h ('k') | webrtc/sdk/objc/Framework/Headers/WebRTC/RTCIceCandidate.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: webrtc/sdk/objc/Framework/Classes/RTCIceCandidate.mm
diff --git a/webrtc/sdk/objc/Framework/Classes/RTCIceCandidate.mm b/webrtc/sdk/objc/Framework/Classes/RTCIceCandidate.mm
index 193403d11d8fcfd8157100c426128b64bb30e3f0..0e2cc8abc8018de18f0e3527c459f3873d8af57b 100644
--- a/webrtc/sdk/objc/Framework/Classes/RTCIceCandidate.mm
+++ b/webrtc/sdk/objc/Framework/Classes/RTCIceCandidate.mm
@@ -20,6 +20,7 @@
@synthesize sdpMid = _sdpMid;
@synthesize sdpMLineIndex = _sdpMLineIndex;
@synthesize sdp = _sdp;
+@synthesize serverUrl = _serverUrl;
- (instancetype)initWithSdp:(NSString *)sdp
sdpMLineIndex:(int)sdpMLineIndex
@@ -34,10 +35,11 @@
}
- (NSString *)description {
- return [NSString stringWithFormat:@"RTCIceCandidate:\n%@\n%d\n%@",
+ return [NSString stringWithFormat:@"RTCIceCandidate:\n%@\n%d\n%@\n%@",
_sdpMid,
_sdpMLineIndex,
- _sdp];
+ _sdp,
+ _serverUrl];
}
#pragma mark - Private
@@ -48,9 +50,12 @@
std::string sdp;
candidate->ToString(&sdp);
- return [self initWithSdp:[NSString stringForStdString:sdp]
- sdpMLineIndex:candidate->sdp_mline_index()
- sdpMid:[NSString stringForStdString:candidate->sdp_mid()]];
+ RTCIceCandidate *rtcCandidate =
+ [self initWithSdp:[NSString stringForStdString:sdp]
+ sdpMLineIndex:candidate->sdp_mline_index()
+ sdpMid:[NSString stringForStdString:candidate->sdp_mid()]];
+ rtcCandidate->_serverUrl = [NSString stringForStdString:candidate->server_url()];
+ return rtcCandidate;
}
- (std::unique_ptr<webrtc::IceCandidateInterface>)nativeCandidate {
« no previous file with comments | « webrtc/api/jsepicecandidate.h ('k') | webrtc/sdk/objc/Framework/Headers/WebRTC/RTCIceCandidate.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698