Export IceParameters::Parse for use in Chrome

Bug: chromium:1044521
Change-Id: I7c6fb0ba5ac918858ed65f9fe503c4de6f6acce5
Reviewed-on: https://webrtc-review.googlesource.com/c/src/+/167683
Commit-Queue: Steve Anton <steveanton@webrtc.org>
Commit-Queue: Qingsi Wang <qingsi@webrtc.org>
Reviewed-by: Qingsi Wang <qingsi@webrtc.org>
Cr-Commit-Position: refs/heads/master@{#30387}
This commit is contained in:
Steve Anton 2020-01-27 15:56:08 -08:00 committed by Commit Bot
parent 11b66cf110
commit 8a6f9a03f0

View File

@ -20,6 +20,7 @@
#include "api/rtc_error.h"
#include "p2p/base/p2p_constants.h"
#include "rtc_base/ssl_fingerprint.h"
#include "rtc_base/system/rtc_export.h"
namespace cricket {
@ -59,8 +60,9 @@ enum ConnectionRole {
struct IceParameters {
// Constructs an IceParameters from a user-provided ufrag/pwd combination.
// Returns a SyntaxError if the ufrag or pwd are malformed.
static webrtc::RTCErrorOr<IceParameters> Parse(absl::string_view raw_ufrag,
absl::string_view raw_pwd);
static RTC_EXPORT webrtc::RTCErrorOr<IceParameters> Parse(
absl::string_view raw_ufrag,
absl::string_view raw_pwd);
// TODO(honghaiz): Include ICE mode in this structure to match the ORTC
// struct: