Chromium Code Reviews| OLD | NEW |
|---|---|
| 1 // Copyright 2014 The Chromium Authors. All rights reserved. | 1 // Copyright 2014 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 #ifndef CHROME_BROWSER_METRICS_NETWORK_METRICS_PROVIDER_H_ | 5 #ifndef CHROME_BROWSER_METRICS_NETWORK_METRICS_PROVIDER_H_ |
| 6 #define CHROME_BROWSER_METRICS_NETWORK_METRICS_PROVIDER_H_ | 6 #define CHROME_BROWSER_METRICS_NETWORK_METRICS_PROVIDER_H_ |
| 7 | 7 |
| 8 #include "base/basictypes.h" | 8 #include "base/basictypes.h" |
| 9 #include "base/memory/scoped_ptr.h" | 9 #include "base/memory/scoped_ptr.h" |
| 10 #include "base/memory/weak_ptr.h" | 10 #include "base/memory/weak_ptr.h" |
| (...skipping 24 matching lines...) Expand all Loading... | |
| 35 GetConnectionType() const; | 35 GetConnectionType() const; |
| 36 metrics::SystemProfileProto::Network::WifiPHYLayerProtocol | 36 metrics::SystemProfileProto::Network::WifiPHYLayerProtocol |
| 37 GetWifiPHYLayerProtocol() const; | 37 GetWifiPHYLayerProtocol() const; |
| 38 | 38 |
| 39 // Posts a call to net::GetWifiPHYLayerProtocol on the blocking pool. | 39 // Posts a call to net::GetWifiPHYLayerProtocol on the blocking pool. |
| 40 void ProbeWifiPHYLayerProtocol(); | 40 void ProbeWifiPHYLayerProtocol(); |
| 41 // Callback from the blocking pool with the result of | 41 // Callback from the blocking pool with the result of |
| 42 // net::GetWifiPHYLayerProtocol. | 42 // net::GetWifiPHYLayerProtocol. |
| 43 void OnWifiPHYLayerProtocolResult(net::WifiPHYLayerProtocol mode); | 43 void OnWifiPHYLayerProtocolResult(net::WifiPHYLayerProtocol mode); |
| 44 | 44 |
| 45 void WriteWifiApProto( | |
|
Ilya Sherman
2014/07/10 00:39:10
Please add documentation for this method.
zqiu1
2014/07/10 18:11:55
Done.
| |
| 46 const net::NetworkChangeNotifier::WifiApInfo &info, | |
| 47 metrics::SystemProfileProto::Network *network_proto); | |
|
Ilya Sherman
2014/07/10 00:39:10
nit: The ampersand and the star should each preced
zqiu1
2014/07/10 18:11:55
Done.
| |
| 48 | |
| 45 // True if |connection_type_| changed during the lifetime of the log. | 49 // True if |connection_type_| changed during the lifetime of the log. |
| 46 bool connection_type_is_ambiguous_; | 50 bool connection_type_is_ambiguous_; |
| 47 // The connection type according to net::NetworkChangeNotifier. | 51 // The connection type according to net::NetworkChangeNotifier. |
| 48 net::NetworkChangeNotifier::ConnectionType connection_type_; | 52 net::NetworkChangeNotifier::ConnectionType connection_type_; |
| 49 | 53 |
| 50 // True if |wifi_phy_layer_protocol_| changed during the lifetime of the log. | 54 // True if |wifi_phy_layer_protocol_| changed during the lifetime of the log. |
| 51 bool wifi_phy_layer_protocol_is_ambiguous_; | 55 bool wifi_phy_layer_protocol_is_ambiguous_; |
| 52 // The PHY mode of the currently associated access point obtained via | 56 // The PHY mode of the currently associated access point obtained via |
| 53 // net::GetWifiPHYLayerProtocol. | 57 // net::GetWifiPHYLayerProtocol. |
| 54 net::WifiPHYLayerProtocol wifi_phy_layer_protocol_; | 58 net::WifiPHYLayerProtocol wifi_phy_layer_protocol_; |
| 55 | 59 |
| 56 base::WeakPtrFactory<NetworkMetricsProvider> weak_ptr_factory_; | 60 base::WeakPtrFactory<NetworkMetricsProvider> weak_ptr_factory_; |
| 57 | 61 |
| 58 DISALLOW_COPY_AND_ASSIGN(NetworkMetricsProvider); | 62 DISALLOW_COPY_AND_ASSIGN(NetworkMetricsProvider); |
| 59 }; | 63 }; |
| 60 | 64 |
| 61 #endif // CHROME_BROWSER_METRICS_NETWORK_METRICS_PROVIDER_H_ | 65 #endif // CHROME_BROWSER_METRICS_NETWORK_METRICS_PROVIDER_H_ |
| OLD | NEW |