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

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

Issue 2171183002: Remove ports that are not used by any channel after timeout (Closed) Base URL: https://chromium.googlesource.com/external/webrtc@master
Patch Set: fix a comment 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
« webrtc/p2p/base/port.h ('K') | « webrtc/p2p/base/port_unittest.cc ('k') | no next file » | 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 2012 The WebRTC Project Authors. All rights reserved. 2 * Copyright 2012 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 37 matching lines...) Expand 10 before | Expand all | Expand 10 after
48 virtual void SetIceRole(IceRole role) = 0; 48 virtual void SetIceRole(IceRole role) = 0;
49 virtual IceRole GetIceRole() const = 0; 49 virtual IceRole GetIceRole() const = 0;
50 50
51 virtual void SetIceTiebreaker(uint64_t tiebreaker) = 0; 51 virtual void SetIceTiebreaker(uint64_t tiebreaker) = 0;
52 virtual uint64_t IceTiebreaker() const = 0; 52 virtual uint64_t IceTiebreaker() const = 0;
53 53
54 virtual bool SharedSocket() const = 0; 54 virtual bool SharedSocket() const = 0;
55 55
56 virtual bool SupportsProtocol(const std::string& protocol) const = 0; 56 virtual bool SupportsProtocol(const std::string& protocol) const = 0;
57 57
58 // Called when this port starts to be used by a channel.
59 virtual void StartBeingUsed() = 0;
60 // Called when this port stops being used by a channel.
61 virtual void StopBeingUsed() = 0;
62
58 // PrepareAddress will attempt to get an address for this port that other 63 // PrepareAddress will attempt to get an address for this port that other
59 // clients can send to. It may take some time before the address is ready. 64 // clients can send to. It may take some time before the address is ready.
60 // Once it is ready, we will send SignalAddressReady. If errors are 65 // Once it is ready, we will send SignalAddressReady. If errors are
61 // preventing the port from getting an address, it may send 66 // preventing the port from getting an address, it may send
62 // SignalAddressError. 67 // SignalAddressError.
63 virtual void PrepareAddress() = 0; 68 virtual void PrepareAddress() = 0;
64 69
65 // Returns the connection to the given address or NULL if none exists. 70 // Returns the connection to the given address or NULL if none exists.
66 virtual Connection* GetConnection( 71 virtual Connection* GetConnection(
67 const rtc::SocketAddress& remote_addr) = 0; 72 const rtc::SocketAddress& remote_addr) = 0;
(...skipping 54 matching lines...) Expand 10 before | Expand all | Expand 10 after
122 127
123 virtual std::string ToString() const = 0; 128 virtual std::string ToString() const = 0;
124 129
125 protected: 130 protected:
126 PortInterface() {} 131 PortInterface() {}
127 }; 132 };
128 133
129 } // namespace cricket 134 } // namespace cricket
130 135
131 #endif // WEBRTC_P2P_BASE_PORTINTERFACE_H_ 136 #endif // WEBRTC_P2P_BASE_PORTINTERFACE_H_
OLDNEW
« webrtc/p2p/base/port.h ('K') | « webrtc/p2p/base/port_unittest.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698