| OLD | NEW |
| 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 Loading... |
| 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 Loading... |
| 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 |
| OLD | NEW |