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

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

Issue 2437503004: Set actual transport overhead in rtp_rtcp (Closed)
Patch Set: Save selected candidate pair in transport channel. Created 4 years, 1 month 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
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 149 matching lines...) Expand 10 before | Expand all | Expand 10 after
160 // is ready to send with this candidate pair. 160 // is ready to send with this candidate pair.
161 sigslot::signal4<TransportChannel*, CandidatePairInterface*, int, bool> 161 sigslot::signal4<TransportChannel*, CandidatePairInterface*, int, bool>
162 SignalSelectedCandidatePairChanged; 162 SignalSelectedCandidatePairChanged;
163 163
164 // Invoked when the channel is being destroyed. 164 // Invoked when the channel is being destroyed.
165 sigslot::signal1<TransportChannel*> SignalDestroyed; 165 sigslot::signal1<TransportChannel*> SignalDestroyed;
166 166
167 // Debugging description of this transport channel. 167 // Debugging description of this transport channel.
168 std::string ToString() const; 168 std::string ToString() const;
169 169
170 // get selected candidate pair
171 // virtual CandidatePairInterface* selected_candidate_pair();
honghaiz3 2016/10/31 17:42:09 You don't need this unless you want to choose the
michaelt 2016/11/01 08:31:37 Done.
172
170 protected: 173 protected:
171 // Sets the writable state, signaling if necessary. 174 // Sets the writable state, signaling if necessary.
172 void set_writable(bool writable); 175 void set_writable(bool writable);
173 176
174 // Sets the receiving state, signaling if necessary. 177 // Sets the receiving state, signaling if necessary.
175 void set_receiving(bool receiving); 178 void set_receiving(bool receiving);
176 179
177 // Sets the DTLS state, signaling if necessary. 180 // Sets the DTLS state, signaling if necessary.
178 void set_dtls_state(DtlsTransportState state); 181 void set_dtls_state(DtlsTransportState state);
179 182
180 private: 183 private:
181 // Used mostly for debugging. 184 // Used mostly for debugging.
182 std::string transport_name_; 185 std::string transport_name_;
183 int component_; 186 int component_;
184 bool writable_; 187 bool writable_;
185 bool receiving_; 188 bool receiving_;
186 DtlsTransportState dtls_state_ = DTLS_TRANSPORT_NEW; 189 DtlsTransportState dtls_state_ = DTLS_TRANSPORT_NEW;
187 190
188 RTC_DISALLOW_COPY_AND_ASSIGN(TransportChannel); 191 RTC_DISALLOW_COPY_AND_ASSIGN(TransportChannel);
189 }; 192 };
190 193
191 } // namespace cricket 194 } // namespace cricket
192 195
193 #endif // WEBRTC_P2P_BASE_TRANSPORTCHANNEL_H_ 196 #endif // WEBRTC_P2P_BASE_TRANSPORTCHANNEL_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698