| 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/p2p/ipc_network_manager.h" | 5 #include "content/renderer/p2p/ipc_network_manager.h" |
| 6 | 6 |
| 7 #include <string> | 7 #include <string> |
| 8 #include "base/bind.h" | 8 #include "base/bind.h" |
| 9 #include "base/command_line.h" | 9 #include "base/command_line.h" |
| 10 #include "base/location.h" | 10 #include "base/location.h" |
| 11 #include "base/metrics/histogram.h" | 11 #include "base/metrics/histogram.h" |
| 12 #include "base/single_thread_task_runner.h" | 12 #include "base/single_thread_task_runner.h" |
| 13 #include "base/sys_byteorder.h" | 13 #include "base/sys_byteorder.h" |
| 14 #include "base/thread_task_runner_handle.h" | 14 #include "base/thread_task_runner_handle.h" |
| 15 #include "content/public/common/content_switches.h" | 15 #include "content/public/common/content_switches.h" |
| 16 #include "net/base/ip_address_number.h" | 16 #include "net/base/ip_address_number.h" |
| 17 #include "net/base/net_util.h" | 17 #include "net/base/net_util.h" |
| 18 #include "net/base/network_change_notifier.h" | 18 #include "net/base/network_change_notifier.h" |
| 19 #include "net/base/network_interfaces.h" |
| 19 | 20 |
| 20 namespace content { | 21 namespace content { |
| 21 | 22 |
| 22 namespace { | 23 namespace { |
| 23 | 24 |
| 24 rtc::AdapterType ConvertConnectionTypeToAdapterType( | 25 rtc::AdapterType ConvertConnectionTypeToAdapterType( |
| 25 net::NetworkChangeNotifier::ConnectionType type) { | 26 net::NetworkChangeNotifier::ConnectionType type) { |
| 26 switch (type) { | 27 switch (type) { |
| 27 case net::NetworkChangeNotifier::CONNECTION_UNKNOWN: | 28 case net::NetworkChangeNotifier::CONNECTION_UNKNOWN: |
| 28 return rtc::ADAPTER_TYPE_UNKNOWN; | 29 return rtc::ADAPTER_TYPE_UNKNOWN; |
| (...skipping 114 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 143 stats.ipv4_network_count); | 144 stats.ipv4_network_count); |
| 144 UMA_HISTOGRAM_COUNTS_100("WebRTC.PeerConnection.IPv6Interfaces", | 145 UMA_HISTOGRAM_COUNTS_100("WebRTC.PeerConnection.IPv6Interfaces", |
| 145 stats.ipv6_network_count); | 146 stats.ipv6_network_count); |
| 146 } | 147 } |
| 147 | 148 |
| 148 void IpcNetworkManager::SendNetworksChangedSignal() { | 149 void IpcNetworkManager::SendNetworksChangedSignal() { |
| 149 SignalNetworksChanged(); | 150 SignalNetworksChanged(); |
| 150 } | 151 } |
| 151 | 152 |
| 152 } // namespace content | 153 } // namespace content |
| OLD | NEW |