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

Unified Diff: webrtc/p2p/base/portallocator.h

Issue 2557803002: Add disabled certificate check support to IceServer PeerConnection API. (Closed)
Patch Set: Add disabled certificate check support to IceServer PeerConnection API. Created 4 years 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
Index: webrtc/p2p/base/portallocator.h
diff --git a/webrtc/p2p/base/portallocator.h b/webrtc/p2p/base/portallocator.h
index 3c81068060a3a717f94e329db7ed541dc86c9e51..ba6ad37d24bf45e177a77c4d87cf6bbdc1041a54 100644
--- a/webrtc/p2p/base/portallocator.h
+++ b/webrtc/p2p/base/portallocator.h
@@ -119,11 +119,23 @@ struct RelayServerConfig {
int port,
const std::string& username,
const std::string& password,
+ ProtocolType proto)
+ : RelayServerConfig(address,
+ port,
+ username,
+ password,
+ proto,
+ PROTO_FLAG_NONE) {}
+
+ RelayServerConfig(const std::string& address,
+ int port,
+ const std::string& username,
+ const std::string& password,
ProtocolType proto,
- bool secure)
Taylor Brandstetter 2016/12/08 01:36:40 You should keep this constructor around for backwa
hnsl1 2016/12/12 16:08:13 Done.
+ ProtocolFlags flags)
: type(RELAY_TURN), credentials(username, password) {
ports.push_back(
- ProtocolAddress(rtc::SocketAddress(address, port), proto, secure));
+ ProtocolAddress(rtc::SocketAddress(address, port), proto, flags));
}
bool operator==(const RelayServerConfig& o) const {

Powered by Google App Engine
This is Rietveld 408576698