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

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

Issue 573623002: Code refactor related to WeakPtrFactory in src/components module (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 6 years, 3 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
« no previous file with comments | « no previous file | components/web_cache/browser/web_cache_manager.h » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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/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
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_
OLDNEW
« no previous file with comments | « no previous file | components/web_cache/browser/web_cache_manager.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698