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

Unified Diff: Source/platform/exported/WebRTCICECandidate.cpp

Issue 187673002: MediaStream API: Update RTCIceCandidate to match the Spec (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Added test Created 6 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 | « Source/modules/mediastream/RTCIceCandidate.idl ('k') | public/platform/WebRTCICECandidate.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: Source/platform/exported/WebRTCICECandidate.cpp
diff --git a/Source/platform/exported/WebRTCICECandidate.cpp b/Source/platform/exported/WebRTCICECandidate.cpp
index 2013c86a57ddf17364d812b36e13f98d66965c5b..7788fe5fecba5939680fe628d569c0de19c28435 100644
--- a/Source/platform/exported/WebRTCICECandidate.cpp
+++ b/Source/platform/exported/WebRTCICECandidate.cpp
@@ -48,6 +48,10 @@ public:
const WebString& sdpMid() const { return m_sdpMid; }
unsigned short sdpMLineIndex() const { return m_sdpMLineIndex; }
+ BLINK_PLATFORM_EXPORT void setCandidate(WebString candidate) { m_candidate = candidate; }
+ BLINK_PLATFORM_EXPORT void setSdpMid(WebString sdpMid) { m_sdpMid = sdpMid; }
+ BLINK_PLATFORM_EXPORT void setSdpMLineIndex(unsigned short sdpMLineIndex) { m_sdpMLineIndex = sdpMLineIndex; }
+
private:
WebRTCICECandidatePrivate(const WebString& candidate, const WebString& sdpMid, unsigned short sdpMLineIndex);
@@ -96,4 +100,22 @@ unsigned short WebRTCICECandidate::sdpMLineIndex() const
return m_private->sdpMLineIndex();
}
+void WebRTCICECandidate::setCandidate(WebString candidate)
+{
+ ASSERT(!m_private.isNull());
+ m_private->setCandidate(candidate);
+}
+
+void WebRTCICECandidate::setSdpMid(WebString sdpMid)
+{
+ ASSERT(!m_private.isNull());
+ m_private->setSdpMid(sdpMid);
+}
+
+void WebRTCICECandidate::setSdpMLineIndex(unsigned short sdpMLineIndex)
+{
+ ASSERT(!m_private.isNull());
+ m_private->setSdpMLineIndex(sdpMLineIndex);
+}
+
} // namespace blink
« no previous file with comments | « Source/modules/mediastream/RTCIceCandidate.idl ('k') | public/platform/WebRTCICECandidate.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698