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

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

Issue 1290723003: Stop including network_interfaces.h from net_util.h (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Added one missing include Created 5 years, 4 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/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 "components/metrics/metrics_provider.h" 11 #include "components/metrics/metrics_provider.h"
12 #include "components/metrics/net/wifi_access_point_info_provider.h" 12 #include "components/metrics/net/wifi_access_point_info_provider.h"
13 #include "components/metrics/proto/system_profile.pb.h" 13 #include "components/metrics/proto/system_profile.pb.h"
14 #include "net/base/net_util.h" 14 #include "net/base/net_util.h"
15 #include "net/base/network_change_notifier.h" 15 #include "net/base/network_change_notifier.h"
16 #include "net/base/network_interfaces.h"
16 17
17 namespace metrics { 18 namespace metrics {
18 19
19 // Registers as observer with net::NetworkChangeNotifier and keeps track of 20 // Registers as observer with net::NetworkChangeNotifier and keeps track of
20 // the network environment. 21 // the network environment.
21 class NetworkMetricsProvider 22 class NetworkMetricsProvider
22 : public MetricsProvider, 23 : public MetricsProvider,
23 public net::NetworkChangeNotifier::ConnectionTypeObserver { 24 public net::NetworkChangeNotifier::ConnectionTypeObserver {
24 public: 25 public:
25 // Creates a NetworkMetricsProvider, where |io_task_runner| is used to post 26 // Creates a NetworkMetricsProvider, where |io_task_runner| is used to post
(...skipping 44 matching lines...) Expand 10 before | Expand all | Expand 10 after
70 scoped_ptr<WifiAccessPointInfoProvider> wifi_access_point_info_provider_; 71 scoped_ptr<WifiAccessPointInfoProvider> wifi_access_point_info_provider_;
71 72
72 base::WeakPtrFactory<NetworkMetricsProvider> weak_ptr_factory_; 73 base::WeakPtrFactory<NetworkMetricsProvider> weak_ptr_factory_;
73 74
74 DISALLOW_COPY_AND_ASSIGN(NetworkMetricsProvider); 75 DISALLOW_COPY_AND_ASSIGN(NetworkMetricsProvider);
75 }; 76 };
76 77
77 } // namespace metrics 78 } // namespace metrics
78 79
79 #endif // COMPONENTS_METRICS_NET_NETWORK_METRICS_PROVIDER_H_ 80 #endif // COMPONENTS_METRICS_NET_NETWORK_METRICS_PROVIDER_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698