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> |
11 #include <vector> | 11 #include <vector> |
12 | 12 |
13 #include "base/command_line.h" | 13 #include "base/command_line.h" |
14 #include "base/lazy_instance.h" | 14 #include "base/lazy_instance.h" |
15 #include "base/location.h" | 15 #include "base/location.h" |
16 #include "base/logging.h" | 16 #include "base/logging.h" |
17 #include "base/metrics/histogram.h" | 17 #include "base/metrics/histogram.h" |
18 #include "base/metrics/sparse_histogram.h" | 18 #include "base/metrics/sparse_histogram.h" |
19 #include "base/stl_util.h" | 19 #include "base/stl_util.h" |
20 #include "base/strings/utf_string_conversions.h" | 20 #include "base/strings/utf_string_conversions.h" |
21 #include "base/thread_task_runner_handle.h" | 21 #include "base/threading/thread_task_runner_handle.h" |
22 #include "base/trace_event/trace_event.h" | 22 #include "base/trace_event/trace_event.h" |
23 #include "content/public/common/content_features.h" | 23 #include "content/public/common/content_features.h" |
24 #include "content/public/common/content_switches.h" | 24 #include "content/public/common/content_switches.h" |
25 #include "content/renderer/media/media_stream_audio_track.h" | 25 #include "content/renderer/media/media_stream_audio_track.h" |
26 #include "content/renderer/media/media_stream_constraints_util.h" | 26 #include "content/renderer/media/media_stream_constraints_util.h" |
27 #include "content/renderer/media/media_stream_track.h" | 27 #include "content/renderer/media/media_stream_track.h" |
28 #include "content/renderer/media/peer_connection_tracker.h" | 28 #include "content/renderer/media/peer_connection_tracker.h" |
29 #include "content/renderer/media/remote_media_stream_impl.h" | 29 #include "content/renderer/media/remote_media_stream_impl.h" |
30 #include "content/renderer/media/rtc_certificate.h" | 30 #include "content/renderer/media/rtc_certificate.h" |
31 #include "content/renderer/media/rtc_data_channel_handler.h" | 31 #include "content/renderer/media/rtc_data_channel_handler.h" |
(...skipping 1763 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1795 } | 1795 } |
1796 | 1796 |
1797 void RTCPeerConnectionHandler::ResetUMAStats() { | 1797 void RTCPeerConnectionHandler::ResetUMAStats() { |
1798 DCHECK(thread_checker_.CalledOnValidThread()); | 1798 DCHECK(thread_checker_.CalledOnValidThread()); |
1799 num_local_candidates_ipv6_ = 0; | 1799 num_local_candidates_ipv6_ = 0; |
1800 num_local_candidates_ipv4_ = 0; | 1800 num_local_candidates_ipv4_ = 0; |
1801 ice_connection_checking_start_ = base::TimeTicks(); | 1801 ice_connection_checking_start_ = base::TimeTicks(); |
1802 memset(ice_state_seen_, 0, sizeof(ice_state_seen_)); | 1802 memset(ice_state_seen_, 0, sizeof(ice_state_seen_)); |
1803 } | 1803 } |
1804 } // namespace content | 1804 } // namespace content |
OLD | NEW |