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

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

Issue 865973003: Update {virtual,override,final} to follow C++11 style in components, round 2. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Fix format Created 5 years, 11 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_WIFI_ACCESS_POINT_INFO_PROVIDER_CHROMEOS_H_ 5 #ifndef COMPONENTS_METRICS_NET_WIFI_ACCESS_POINT_INFO_PROVIDER_CHROMEOS_H_
6 #define COMPONENTS_METRICS_NET_WIFI_ACCESS_POINT_INFO_PROVIDER_CHROMEOS_H_ 6 #define COMPONENTS_METRICS_NET_WIFI_ACCESS_POINT_INFO_PROVIDER_CHROMEOS_H_
7 7
8 #include <string> 8 #include <string>
9 9
10 #include "base/basictypes.h" 10 #include "base/basictypes.h"
11 #include "base/memory/weak_ptr.h" 11 #include "base/memory/weak_ptr.h"
12 #include "base/values.h" 12 #include "base/values.h"
13 #include "chromeos/network/network_state_handler_observer.h" 13 #include "chromeos/network/network_state_handler_observer.h"
14 #include "components/metrics/net/wifi_access_point_info_provider.h" 14 #include "components/metrics/net/wifi_access_point_info_provider.h"
15 15
16 namespace metrics { 16 namespace metrics {
17 17
18 // WifiAccessPointInfoProviderChromeos provides the connected wifi 18 // WifiAccessPointInfoProviderChromeos provides the connected wifi
19 // acccess point information for chromeos. 19 // acccess point information for chromeos.
20 class WifiAccessPointInfoProviderChromeos 20 class WifiAccessPointInfoProviderChromeos
21 : public WifiAccessPointInfoProvider, 21 : public WifiAccessPointInfoProvider,
22 public chromeos::NetworkStateHandlerObserver, 22 public chromeos::NetworkStateHandlerObserver,
23 public base::SupportsWeakPtr<WifiAccessPointInfoProviderChromeos> { 23 public base::SupportsWeakPtr<WifiAccessPointInfoProviderChromeos> {
24 public: 24 public:
25 WifiAccessPointInfoProviderChromeos(); 25 WifiAccessPointInfoProviderChromeos();
26 virtual ~WifiAccessPointInfoProviderChromeos(); 26 ~WifiAccessPointInfoProviderChromeos() override;
27 27
28 // WifiAccessPointInfoProvider: 28 // WifiAccessPointInfoProvider:
29 bool GetInfo(WifiAccessPointInfo* info) override; 29 bool GetInfo(WifiAccessPointInfo* info) override;
30 30
31 // NetworkStateHandlerObserver: 31 // NetworkStateHandlerObserver:
32 void DefaultNetworkChanged( 32 void DefaultNetworkChanged(
33 const chromeos::NetworkState* default_network) override; 33 const chromeos::NetworkState* default_network) override;
34 34
35 private: 35 private:
36 // Callback from Shill.Service.GetProperties. Parses |properties| to obtain 36 // Callback from Shill.Service.GetProperties. Parses |properties| to obtain
37 // the wifi access point information. 37 // the wifi access point information.
38 void ParseInfo(const std::string& service_path, 38 void ParseInfo(const std::string& service_path,
39 const base::DictionaryValue& properties); 39 const base::DictionaryValue& properties);
40 40
41 WifiAccessPointInfo wifi_access_point_info_; 41 WifiAccessPointInfo wifi_access_point_info_;
42 42
43 DISALLOW_COPY_AND_ASSIGN(WifiAccessPointInfoProviderChromeos); 43 DISALLOW_COPY_AND_ASSIGN(WifiAccessPointInfoProviderChromeos);
44 }; 44 };
45 45
46 } // namespace metrics 46 } // namespace metrics
47 47
48 #endif // COMPONENTS_METRICS_NET_WIFI_ACCESS_POINT_INFO_PROVIDER_CHROMEOS_H_ 48 #endif // COMPONENTS_METRICS_NET_WIFI_ACCESS_POINT_INFO_PROVIDER_CHROMEOS_H_
OLDNEW
« no previous file with comments | « components/crash/app/breakpad_linux.cc ('k') | components/pairing/bluetooth_controller_pairing_controller.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698