Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(493)

Side by Side Diff: components/metrics/net/network_metrics_provider.h

Issue 1796983002: Log aggregated abort metrics when histograms are uploaded (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 years, 9 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
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/macros.h" 8 #include "base/macros.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 34 matching lines...) Expand 10 before | Expand all | Expand 10 after
45 // Callback from the blocking pool with the result of 45 // Callback from the blocking pool with the result of
46 // net::GetWifiPHYLayerProtocol. 46 // net::GetWifiPHYLayerProtocol.
47 void OnWifiPHYLayerProtocolResult(net::WifiPHYLayerProtocol mode); 47 void OnWifiPHYLayerProtocolResult(net::WifiPHYLayerProtocol mode);
48 48
49 // Writes info about the wireless access points that this system is 49 // Writes info about the wireless access points that this system is
50 // connected to. 50 // connected to.
51 void WriteWifiAccessPointProto( 51 void WriteWifiAccessPointProto(
52 const WifiAccessPointInfoProvider::WifiAccessPointInfo& info, 52 const WifiAccessPointInfoProvider::WifiAccessPointInfo& info,
53 SystemProfileProto::Network* network_proto); 53 SystemProfileProto::Network* network_proto);
54 54
55 // Logs metrics that are functions of other metrics being uploaded.
56 void LogAggregatedMetrics();
57
55 // Task runner used for blocking file I/O. 58 // Task runner used for blocking file I/O.
56 base::TaskRunner* io_task_runner_; 59 base::TaskRunner* io_task_runner_;
57 60
58 // True if |connection_type_| changed during the lifetime of the log. 61 // True if |connection_type_| changed during the lifetime of the log.
59 bool connection_type_is_ambiguous_; 62 bool connection_type_is_ambiguous_;
60 // The connection type according to net::NetworkChangeNotifier. 63 // The connection type according to net::NetworkChangeNotifier.
61 net::NetworkChangeNotifier::ConnectionType connection_type_; 64 net::NetworkChangeNotifier::ConnectionType connection_type_;
62 65
63 // True if |wifi_phy_layer_protocol_| changed during the lifetime of the log. 66 // True if |wifi_phy_layer_protocol_| changed during the lifetime of the log.
64 bool wifi_phy_layer_protocol_is_ambiguous_; 67 bool wifi_phy_layer_protocol_is_ambiguous_;
65 // The PHY mode of the currently associated access point obtained via 68 // The PHY mode of the currently associated access point obtained via
66 // net::GetWifiPHYLayerProtocol. 69 // net::GetWifiPHYLayerProtocol.
67 net::WifiPHYLayerProtocol wifi_phy_layer_protocol_; 70 net::WifiPHYLayerProtocol wifi_phy_layer_protocol_;
68 71
69 // Helper object for retrieving connected wifi access point information. 72 // Helper object for retrieving connected wifi access point information.
70 scoped_ptr<WifiAccessPointInfoProvider> wifi_access_point_info_provider_; 73 scoped_ptr<WifiAccessPointInfoProvider> wifi_access_point_info_provider_;
71 74
72 base::WeakPtrFactory<NetworkMetricsProvider> weak_ptr_factory_; 75 base::WeakPtrFactory<NetworkMetricsProvider> weak_ptr_factory_;
73 76
74 DISALLOW_COPY_AND_ASSIGN(NetworkMetricsProvider); 77 DISALLOW_COPY_AND_ASSIGN(NetworkMetricsProvider);
75 }; 78 };
76 79
77 } // namespace metrics 80 } // namespace metrics
78 81
79 #endif // COMPONENTS_METRICS_NET_NETWORK_METRICS_PROVIDER_H_ 82 #endif // COMPONENTS_METRICS_NET_NETWORK_METRICS_PROVIDER_H_
OLDNEW
« no previous file with comments | « no previous file | components/metrics/net/network_metrics_provider.cc » ('j') | components/metrics/net/network_metrics_provider.cc » ('J')

Powered by Google App Engine
This is Rietveld 408576698