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 COMPONENTS_METRICS_NET_NETWORK_METRICS_PROVIDER_H_ | 5 #ifndef COMPONENTS_METRICS_NET_NETWORK_METRICS_PROVIDER_H_ |
6 #define COMPONENTS_METRICS_NET_NETWORK_METRICS_PROVIDER_H_ | 6 #define COMPONENTS_METRICS_NET_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 48 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
59 bool connection_type_is_ambiguous_; | 59 bool connection_type_is_ambiguous_; |
60 // The connection type according to net::NetworkChangeNotifier. | 60 // The connection type according to net::NetworkChangeNotifier. |
61 net::NetworkChangeNotifier::ConnectionType connection_type_; | 61 net::NetworkChangeNotifier::ConnectionType connection_type_; |
62 | 62 |
63 // True if |wifi_phy_layer_protocol_| changed during the lifetime of the log. | 63 // True if |wifi_phy_layer_protocol_| changed during the lifetime of the log. |
64 bool wifi_phy_layer_protocol_is_ambiguous_; | 64 bool wifi_phy_layer_protocol_is_ambiguous_; |
65 // The PHY mode of the currently associated access point obtained via | 65 // The PHY mode of the currently associated access point obtained via |
66 // net::GetWifiPHYLayerProtocol. | 66 // net::GetWifiPHYLayerProtocol. |
67 net::WifiPHYLayerProtocol wifi_phy_layer_protocol_; | 67 net::WifiPHYLayerProtocol wifi_phy_layer_protocol_; |
68 | 68 |
69 base::WeakPtrFactory<NetworkMetricsProvider> weak_ptr_factory_; | |
70 | |
71 // Helper object for retrieving connected wifi access point information. | 69 // Helper object for retrieving connected wifi access point information. |
72 scoped_ptr<WifiAccessPointInfoProvider> wifi_access_point_info_provider_; | 70 scoped_ptr<WifiAccessPointInfoProvider> wifi_access_point_info_provider_; |
73 | 71 |
| 72 base::WeakPtrFactory<NetworkMetricsProvider> weak_ptr_factory_; |
| 73 |
74 DISALLOW_COPY_AND_ASSIGN(NetworkMetricsProvider); | 74 DISALLOW_COPY_AND_ASSIGN(NetworkMetricsProvider); |
75 }; | 75 }; |
76 | 76 |
77 #endif // COMPONENTS_METRICS_NET_NETWORK_METRICS_PROVIDER_H_ | 77 #endif // COMPONENTS_METRICS_NET_NETWORK_METRICS_PROVIDER_H_ |
OLD | NEW |