Chromium Code Reviews| Index: chrome/browser/metrics/network_metrics_provider.h |
| diff --git a/chrome/browser/metrics/network_metrics_provider.h b/chrome/browser/metrics/network_metrics_provider.h |
| index 21bd4f830cef465133a49b2ca957138ef6e598c3..ac9de4324740d62f0aa1bb1b42a330a5d9ff8ff4 100644 |
| --- a/chrome/browser/metrics/network_metrics_provider.h |
| +++ b/chrome/browser/metrics/network_metrics_provider.h |
| @@ -13,6 +13,12 @@ |
| #include "net/base/net_util.h" |
| #include "net/base/network_change_notifier.h" |
| +#if defined(OS_CHROMEOS) |
| +#include "chromeos/network/wifi_access_point_info_provider_chromeos.h" |
| +#else |
| +#include "net/base/wifi_access_point_info_provider_stub.h" |
| +#endif // OS_CHROMEOS |
|
stevenjb
2014/07/23 22:21:15
Put this in the .cc file, not the header. Just inc
zqiu1
2014/07/23 22:41:32
Done.
|
| + |
| // Registers as observer with net::NetworkChangeNotifier and keeps track of |
| // the network environment. |
| class NetworkMetricsProvider |
| @@ -42,6 +48,12 @@ class NetworkMetricsProvider |
| // net::GetWifiPHYLayerProtocol. |
| void OnWifiPHYLayerProtocolResult(net::WifiPHYLayerProtocol mode); |
| + // Writes info about the wireless access points that this system is |
| + // connected to. |
| + void WriteWifiAccessPointProto( |
| + const net::WifiAccessPointInfo& info, |
| + metrics::SystemProfileProto::Network* network_proto); |
| + |
| // True if |connection_type_| changed during the lifetime of the log. |
| bool connection_type_is_ambiguous_; |
| // The connection type according to net::NetworkChangeNotifier. |
| @@ -55,6 +67,9 @@ class NetworkMetricsProvider |
| base::WeakPtrFactory<NetworkMetricsProvider> weak_ptr_factory_; |
| + // Helper object for retrieving connected wifi access point information. |
| + scoped_ptr<net::WifiAccessPointInfoProvider> wifi_access_point_info_provider_; |
| + |
| DISALLOW_COPY_AND_ASSIGN(NetworkMetricsProvider); |
| }; |