OLD | NEW |
1 // Copyright (c) 2013 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2013 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_METRICS_NETWORK_OBSERVER_H_ | 5 #ifndef CHROME_BROWSER_METRICS_METRICS_NETWORK_OBSERVER_H_ |
6 #define CHROME_BROWSER_METRICS_METRICS_NETWORK_OBSERVER_H_ | 6 #define CHROME_BROWSER_METRICS_METRICS_NETWORK_OBSERVER_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" |
11 #include "chrome/common/metrics/proto/system_profile.pb.h" | 11 #include "components/metrics/proto/system_profile.pb.h" |
12 #include "net/base/net_util.h" | 12 #include "net/base/net_util.h" |
13 #include "net/base/network_change_notifier.h" | 13 #include "net/base/network_change_notifier.h" |
14 | 14 |
15 using metrics::SystemProfileProto; | 15 using metrics::SystemProfileProto; |
16 | 16 |
17 // Registers as observer with net::NetworkChangeNotifier and keeps track of | 17 // Registers as observer with net::NetworkChangeNotifier and keeps track of |
18 // the network environment. | 18 // the network environment. |
19 class MetricsNetworkObserver | 19 class MetricsNetworkObserver |
20 : public net::NetworkChangeNotifier::ConnectionTypeObserver { | 20 : public net::NetworkChangeNotifier::ConnectionTypeObserver { |
21 public: | 21 public: |
(...skipping 37 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
59 // True if |wifi_phy_layer_protocol_| changed during the lifetime of the log. | 59 // True if |wifi_phy_layer_protocol_| changed during the lifetime of the log. |
60 bool wifi_phy_layer_protocol_is_ambiguous_; | 60 bool wifi_phy_layer_protocol_is_ambiguous_; |
61 // The PHY mode of the currently associated access point obtained via | 61 // The PHY mode of the currently associated access point obtained via |
62 // net::GetWifiPHYLayerProtocol. | 62 // net::GetWifiPHYLayerProtocol. |
63 net::WifiPHYLayerProtocol wifi_phy_layer_protocol_; | 63 net::WifiPHYLayerProtocol wifi_phy_layer_protocol_; |
64 | 64 |
65 DISALLOW_COPY_AND_ASSIGN(MetricsNetworkObserver); | 65 DISALLOW_COPY_AND_ASSIGN(MetricsNetworkObserver); |
66 }; | 66 }; |
67 | 67 |
68 #endif // CHROME_BROWSER_METRICS_METRICS_NETWORK_OBSERVER_H_ | 68 #endif // CHROME_BROWSER_METRICS_METRICS_NETWORK_OBSERVER_H_ |
OLD | NEW |