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

Side by Side Diff: content/renderer/media/rtc_peer_connection_handler.cc

Issue 2292253002: Log the dtls handshake error. (Closed)
Patch Set: Created 4 years, 3 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 | « no previous file | tools/metrics/histograms/histograms.xml » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2012 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #include "content/renderer/media/rtc_peer_connection_handler.h" 5 #include "content/renderer/media/rtc_peer_connection_handler.h"
6 6
7 #include <string.h> 7 #include <string.h>
8 8
9 #include <string> 9 #include <string>
10 #include <utility> 10 #include <utility>
(...skipping 692 matching lines...) Expand 10 before | Expand all | Expand 10 after
703 counter_max); 703 counter_max);
704 break; 704 break;
705 case webrtc::kEnumCounterIceCandidatePairTypeUdp: 705 case webrtc::kEnumCounterIceCandidatePairTypeUdp:
706 UMA_HISTOGRAM_ENUMERATION("WebRTC.PeerConnection.CandidatePairType_UDP", 706 UMA_HISTOGRAM_ENUMERATION("WebRTC.PeerConnection.CandidatePairType_UDP",
707 counter, counter_max); 707 counter, counter_max);
708 break; 708 break;
709 case webrtc::kEnumCounterIceCandidatePairTypeTcp: 709 case webrtc::kEnumCounterIceCandidatePairTypeTcp:
710 UMA_HISTOGRAM_ENUMERATION("WebRTC.PeerConnection.CandidatePairType_TCP", 710 UMA_HISTOGRAM_ENUMERATION("WebRTC.PeerConnection.CandidatePairType_TCP",
711 counter, counter_max); 711 counter, counter_max);
712 break; 712 break;
713 case webrtc::kEnumCounterDtlsHandshakeError:
714 UMA_HISTOGRAM_ENUMERATION("WebRTC.PeerConnection.DtlsHandshakeError",
715 counter, counter_max);
716 break;
713 default: 717 default:
714 // The default clause is expected to reach when new enum types are 718 // The default clause is expected to reach when new enum types are
715 // added. 719 // added.
716 break; 720 break;
717 } 721 }
718 } 722 }
719 723
720 void IncrementSparseEnumCounter( 724 void IncrementSparseEnumCounter(
721 webrtc::PeerConnectionEnumCounterType counter_type, 725 webrtc::PeerConnectionEnumCounterType counter_type,
722 int counter) override { 726 int counter) override {
(...skipping 1179 matching lines...) Expand 10 before | Expand all | Expand 10 after
1902 } 1906 }
1903 1907
1904 void RTCPeerConnectionHandler::ResetUMAStats() { 1908 void RTCPeerConnectionHandler::ResetUMAStats() {
1905 DCHECK(thread_checker_.CalledOnValidThread()); 1909 DCHECK(thread_checker_.CalledOnValidThread());
1906 num_local_candidates_ipv6_ = 0; 1910 num_local_candidates_ipv6_ = 0;
1907 num_local_candidates_ipv4_ = 0; 1911 num_local_candidates_ipv4_ = 0;
1908 ice_connection_checking_start_ = base::TimeTicks(); 1912 ice_connection_checking_start_ = base::TimeTicks();
1909 memset(ice_state_seen_, 0, sizeof(ice_state_seen_)); 1913 memset(ice_state_seen_, 0, sizeof(ice_state_seen_));
1910 } 1914 }
1911 } // namespace content 1915 } // namespace content
OLDNEW
« no previous file with comments | « no previous file | tools/metrics/histograms/histograms.xml » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698