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

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

Issue 2099783002: Fixing bug where Connection drops packets when presumed writable. (Closed) Base URL: https://chromium.googlesource.com/external/webrtc.git@master
Patch Set: Merge with master. 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/p2p/base/port_unittest.cc ('k') | webrtc/p2p/base/turnport_unittest.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 142 matching lines...) Expand 10 before | Expand all | Expand 10 after
153 // Deprecated by SignalSelectedCandidatePairChanged 153 // Deprecated by SignalSelectedCandidatePairChanged
154 // This signal occurs when there is a change in the way that packets are 154 // This signal occurs when there is a change in the way that packets are
155 // being routed, i.e. to a different remote location. The candidate 155 // being routed, i.e. to a different remote location. The candidate
156 // indicates where and how we are currently sending media. 156 // indicates where and how we are currently sending media.
157 sigslot::signal2<TransportChannel*, const Candidate&> SignalRouteChange; 157 sigslot::signal2<TransportChannel*, const Candidate&> SignalRouteChange;
158 158
159 // Signalled when the current selected candidate pair has changed. 159 // Signalled when the current selected candidate pair has changed.
160 // The first parameter is the transport channel that signals the event. 160 // The first parameter is the transport channel that signals the event.
161 // The second parameter is the new selected candidate pair. The third 161 // The second parameter is the new selected candidate pair. The third
162 // parameter is the last packet id sent on the previous candidate pair. 162 // parameter is the last packet id sent on the previous candidate pair.
163 sigslot::signal3<TransportChannel*, CandidatePairInterface*, int> 163 // The fourth parameter is a boolean which is true if the TransportChannel
164 // is ready to send with this candidate pair.
165 sigslot::signal4<TransportChannel*, CandidatePairInterface*, int, bool>
164 SignalSelectedCandidatePairChanged; 166 SignalSelectedCandidatePairChanged;
165 167
166 // Invoked when the channel is being destroyed. 168 // Invoked when the channel is being destroyed.
167 sigslot::signal1<TransportChannel*> SignalDestroyed; 169 sigslot::signal1<TransportChannel*> SignalDestroyed;
168 170
169 // Debugging description of this transport channel. 171 // Debugging description of this transport channel.
170 std::string ToString() const; 172 std::string ToString() const;
171 173
172 protected: 174 protected:
173 // Sets the writable state, signaling if necessary. 175 // Sets the writable state, signaling if necessary.
(...skipping 12 matching lines...) Expand all
186 bool writable_; 188 bool writable_;
187 bool receiving_; 189 bool receiving_;
188 DtlsTransportState dtls_state_ = DTLS_TRANSPORT_NEW; 190 DtlsTransportState dtls_state_ = DTLS_TRANSPORT_NEW;
189 191
190 RTC_DISALLOW_COPY_AND_ASSIGN(TransportChannel); 192 RTC_DISALLOW_COPY_AND_ASSIGN(TransportChannel);
191 }; 193 };
192 194
193 } // namespace cricket 195 } // namespace cricket
194 196
195 #endif // WEBRTC_P2P_BASE_TRANSPORTCHANNEL_H_ 197 #endif // WEBRTC_P2P_BASE_TRANSPORTCHANNEL_H_
OLDNEW
« no previous file with comments | « webrtc/p2p/base/port_unittest.cc ('k') | webrtc/p2p/base/turnport_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698