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

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

Issue 2093623004: Add config to prune TURN ports (Closed) Base URL: https://chromium.googlesource.com/external/webrtc.git@master
Patch Set: Partially disable the test TestEachInterfaceHasItsOwnTurnPorts Created 4 years, 5 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/api/peerconnectioninterface.h ('k') | webrtc/p2p/base/p2ptransportchannel.cc » ('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 250 matching lines...) Expand 10 before | Expand all | Expand 10 after
261 PortInterface* origin_port); 261 PortInterface* origin_port);
262 bool IsPingable(const Connection* conn, int64_t now) const; 262 bool IsPingable(const Connection* conn, int64_t now) const;
263 bool IsSelectedConnectionPingable(int64_t now); 263 bool IsSelectedConnectionPingable(int64_t now);
264 int CalculateActiveWritablePingInterval(const Connection* conn, 264 int CalculateActiveWritablePingInterval(const Connection* conn,
265 int64_t now) const; 265 int64_t now) const;
266 void PingConnection(Connection* conn); 266 void PingConnection(Connection* conn);
267 void AddAllocatorSession(std::unique_ptr<PortAllocatorSession> session); 267 void AddAllocatorSession(std::unique_ptr<PortAllocatorSession> session);
268 void AddConnection(Connection* connection); 268 void AddConnection(Connection* connection);
269 269
270 void OnPortReady(PortAllocatorSession *session, PortInterface* port); 270 void OnPortReady(PortAllocatorSession *session, PortInterface* port);
271 void OnPortPruned(PortAllocatorSession* session, PortInterface* port);
272 // Returns true if the port is found and removed from |ports_|.
273 bool RemovePort(PortInterface* port);
271 void OnCandidatesReady(PortAllocatorSession *session, 274 void OnCandidatesReady(PortAllocatorSession *session,
272 const std::vector<Candidate>& candidates); 275 const std::vector<Candidate>& candidates);
273 void OnCandidatesAllocationDone(PortAllocatorSession* session); 276 void OnCandidatesAllocationDone(PortAllocatorSession* session);
274 void OnUnknownAddress(PortInterface* port, 277 void OnUnknownAddress(PortInterface* port,
275 const rtc::SocketAddress& addr, 278 const rtc::SocketAddress& addr,
276 ProtocolType proto, 279 ProtocolType proto,
277 IceMessage* stun_msg, 280 IceMessage* stun_msg,
278 const std::string& remote_username, 281 const std::string& remote_username,
279 bool port_muxed); 282 bool port_muxed);
280 void OnPortDestroyed(PortInterface* port); 283 void OnPortDestroyed(PortInterface* port);
(...skipping 93 matching lines...) Expand 10 before | Expand all | Expand 10 after
374 IceConfig config_; 377 IceConfig config_;
375 int last_sent_packet_id_ = -1; // -1 indicates no packet was sent before. 378 int last_sent_packet_id_ = -1; // -1 indicates no packet was sent before.
376 bool started_pinging_ = false; 379 bool started_pinging_ = false;
377 380
378 RTC_DISALLOW_COPY_AND_ASSIGN(P2PTransportChannel); 381 RTC_DISALLOW_COPY_AND_ASSIGN(P2PTransportChannel);
379 }; 382 };
380 383
381 } // namespace cricket 384 } // namespace cricket
382 385
383 #endif // WEBRTC_P2P_BASE_P2PTRANSPORTCHANNEL_H_ 386 #endif // WEBRTC_P2P_BASE_P2PTRANSPORTCHANNEL_H_
OLDNEW
« no previous file with comments | « webrtc/api/peerconnectioninterface.h ('k') | webrtc/p2p/base/p2ptransportchannel.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698