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

Side by Side Diff: webrtc/p2p/base/portallocator.h

Issue 2993403002: Support a user-provided string for the TLS ALPN extension.
Patch Set: Fix previous commit Created 3 years, 3 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/p2p/base/port_unittest.cc ('k') | webrtc/p2p/base/testturnserver.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 2004 The WebRTC Project Authors. All rights reserved. 2 * Copyright 2004 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
(...skipping 173 matching lines...) Expand 10 before | Expand all | Expand 10 after
184 return type == o.type && ports == o.ports && credentials == o.credentials && 184 return type == o.type && ports == o.ports && credentials == o.credentials &&
185 priority == o.priority; 185 priority == o.priority;
186 } 186 }
187 bool operator!=(const RelayServerConfig& o) const { return !(*this == o); } 187 bool operator!=(const RelayServerConfig& o) const { return !(*this == o); }
188 188
189 RelayType type; 189 RelayType type;
190 PortList ports; 190 PortList ports;
191 RelayCredentials credentials; 191 RelayCredentials credentials;
192 int priority = 0; 192 int priority = 0;
193 TlsCertPolicy tls_cert_policy = TlsCertPolicy::TLS_CERT_POLICY_SECURE; 193 TlsCertPolicy tls_cert_policy = TlsCertPolicy::TLS_CERT_POLICY_SECURE;
194 std::vector<std::string> tls_alpn_protocols;
194 }; 195 };
195 196
196 class PortAllocatorSession : public sigslot::has_slots<> { 197 class PortAllocatorSession : public sigslot::has_slots<> {
197 public: 198 public:
198 // Content name passed in mostly for logging and debugging. 199 // Content name passed in mostly for logging and debugging.
199 PortAllocatorSession(const std::string& content_name, 200 PortAllocatorSession(const std::string& content_name,
200 int component, 201 int component,
201 const std::string& ice_ufrag, 202 const std::string& ice_ufrag,
202 const std::string& ice_pwd, 203 const std::string& ice_pwd,
203 uint32_t flags); 204 uint32_t flags);
(...skipping 298 matching lines...) Expand 10 before | Expand all | Expand 10 after
502 std::deque<std::unique_ptr<PortAllocatorSession>> pooled_sessions_; 503 std::deque<std::unique_ptr<PortAllocatorSession>> pooled_sessions_;
503 bool candidate_pool_frozen_ = false; 504 bool candidate_pool_frozen_ = false;
504 bool prune_turn_ports_ = false; 505 bool prune_turn_ports_ = false;
505 506
506 webrtc::MetricsObserverInterface* metrics_observer_ = nullptr; 507 webrtc::MetricsObserverInterface* metrics_observer_ = nullptr;
507 }; 508 };
508 509
509 } // namespace cricket 510 } // namespace cricket
510 511
511 #endif // WEBRTC_P2P_BASE_PORTALLOCATOR_H_ 512 #endif // WEBRTC_P2P_BASE_PORTALLOCATOR_H_
OLDNEW
« no previous file with comments | « webrtc/p2p/base/port_unittest.cc ('k') | webrtc/p2p/base/testturnserver.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698