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

Side by Side Diff: webrtc/p2p/quic/quictransportchannel.h

Issue 2386783002: Add UMA metrics for ICE regathering reasons. (Closed)
Patch Set: Add const to the pooled_sessions method. Created 4 years, 2 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/client/basicportallocator.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 2016 The WebRTC Project Authors. All rights reserved. 2 * Copyright 2016 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 181 matching lines...) Expand 10 before | Expand all | Expand 10 after
192 // QuicCryptoClientStream::ProofHandler overrides. 192 // QuicCryptoClientStream::ProofHandler overrides.
193 // Called by client crypto handshake when cached proof is marked valid. 193 // Called by client crypto handshake when cached proof is marked valid.
194 void OnProofValid( 194 void OnProofValid(
195 const net::QuicCryptoClientConfig::CachedState& cached) override; 195 const net::QuicCryptoClientConfig::CachedState& cached) override;
196 // Called by the client crypto handshake when proof verification details 196 // Called by the client crypto handshake when proof verification details
197 // become available, either because proof verification is complete, or when 197 // become available, either because proof verification is complete, or when
198 // cached details are used. 198 // cached details are used.
199 void OnProofVerifyDetailsAvailable( 199 void OnProofVerifyDetailsAvailable(
200 const net::ProofVerifyDetails& verify_details) override; 200 const net::ProofVerifyDetails& verify_details) override;
201 201
202 void SetMetricsObserver(webrtc::MetricsObserverInterface* observer) override {
203 channel_->SetMetricsObserver(observer);
204 }
205
202 // Returns true if |quic_| has queued data which wasn't written due 206 // Returns true if |quic_| has queued data which wasn't written due
203 // to |channel_| being write blocked. 207 // to |channel_| being write blocked.
204 bool HasDataToWrite() const; 208 bool HasDataToWrite() const;
205 // Writes queued data for |quic_| when |channel_| is no longer write blocked. 209 // Writes queued data for |quic_| when |channel_| is no longer write blocked.
206 void OnCanWrite(); 210 void OnCanWrite();
207 // Connectivity state of QuicTransportChannel. 211 // Connectivity state of QuicTransportChannel.
208 QuicTransportState quic_state() const { return quic_state_; } 212 QuicTransportState quic_state() const { return quic_state_; }
209 // Creates a new QUIC stream that can send data. 213 // Creates a new QUIC stream that can send data.
210 ReliableQuicStream* CreateQuicStream(); 214 ReliableQuicStream* CreateQuicStream();
211 215
(...skipping 83 matching lines...) Expand 10 before | Expand all | Expand 10 after
295 rtc::scoped_refptr<rtc::RTCCertificate> local_certificate_; 299 rtc::scoped_refptr<rtc::RTCCertificate> local_certificate_;
296 // Fingerprint of the remote peer. This must be set before we start QUIC. 300 // Fingerprint of the remote peer. This must be set before we start QUIC.
297 rtc::Optional<RemoteFingerprint> remote_fingerprint_; 301 rtc::Optional<RemoteFingerprint> remote_fingerprint_;
298 302
299 RTC_DISALLOW_COPY_AND_ASSIGN(QuicTransportChannel); 303 RTC_DISALLOW_COPY_AND_ASSIGN(QuicTransportChannel);
300 }; 304 };
301 305
302 } // namespace cricket 306 } // namespace cricket
303 307
304 #endif // WEBRTC_P2P_QUIC_QUICTRANSPORTCHANNEL_H_ 308 #endif // WEBRTC_P2P_QUIC_QUICTRANSPORTCHANNEL_H_
OLDNEW
« no previous file with comments | « webrtc/p2p/client/basicportallocator.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698