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

Side by Side Diff: content/browser/geolocation/wifi_data_provider_mac.cc

Issue 667943003: Standardize usage of virtual/override/final in content/browser/ (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 6 years, 2 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 (c) 2010 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2010 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 // For OSX 10.5 we use the system API function WirelessScanSplit. This function 5 // For OSX 10.5 we use the system API function WirelessScanSplit. This function
6 // is not documented or included in the SDK, so we use a reverse-engineered 6 // is not documented or included in the SDK, so we use a reverse-engineered
7 // header, osx_wifi_.h. This file is taken from the iStumbler project 7 // header, osx_wifi_.h. This file is taken from the iStumbler project
8 // (http://www.istumbler.net). 8 // (http://www.istumbler.net).
9 9
10 #include "content/browser/geolocation/wifi_data_provider_mac.h" 10 #include "content/browser/geolocation/wifi_data_provider_mac.h"
(...skipping 12 matching lines...) Expand all
23 const int kDefaultPollingInterval = 120000; // 2 mins 23 const int kDefaultPollingInterval = 120000; // 2 mins
24 const int kNoChangePollingInterval = 300000; // 5 mins 24 const int kNoChangePollingInterval = 300000; // 5 mins
25 const int kTwoNoChangePollingInterval = 600000; // 10 mins 25 const int kTwoNoChangePollingInterval = 600000; // 10 mins
26 const int kNoWifiPollingIntervalMilliseconds = 20 * 1000; // 20s 26 const int kNoWifiPollingIntervalMilliseconds = 20 * 1000; // 20s
27 27
28 // Provides the wifi API binding for use when running on OSX 10.5 machines using 28 // Provides the wifi API binding for use when running on OSX 10.5 machines using
29 // the Apple80211 framework. 29 // the Apple80211 framework.
30 class Apple80211Api : public WifiDataProviderCommon::WlanApiInterface { 30 class Apple80211Api : public WifiDataProviderCommon::WlanApiInterface {
31 public: 31 public:
32 Apple80211Api(); 32 Apple80211Api();
33 virtual ~Apple80211Api(); 33 ~Apple80211Api() override;
34 34
35 // Must be called before any other interface method. Will return false if the 35 // Must be called before any other interface method. Will return false if the
36 // Apple80211 framework cannot be initialized (e.g. running on post-10.5 OSX), 36 // Apple80211 framework cannot be initialized (e.g. running on post-10.5 OSX),
37 // in which case no other method may be called. 37 // in which case no other method may be called.
38 bool Init(); 38 bool Init();
39 39
40 // WlanApiInterface 40 // WlanApiInterface
41 virtual bool GetAccessPointData(WifiData::AccessPointDataSet* data) override; 41 bool GetAccessPointData(WifiData::AccessPointDataSet* data) override;
42 42
43 private: 43 private:
44 // Handle, context and function pointers for Apple80211 library. 44 // Handle, context and function pointers for Apple80211 library.
45 void* apple_80211_library_; 45 void* apple_80211_library_;
46 WirelessContext* wifi_context_; 46 WirelessContext* wifi_context_;
47 WirelessAttachFunction WirelessAttach_function_; 47 WirelessAttachFunction WirelessAttach_function_;
48 WirelessScanSplitFunction WirelessScanSplit_function_; 48 WirelessScanSplitFunction WirelessScanSplit_function_;
49 WirelessDetachFunction WirelessDetach_function_; 49 WirelessDetachFunction WirelessDetach_function_;
50 50
51 WifiData wifi_data_; 51 WifiData wifi_data_;
(...skipping 135 matching lines...) Expand 10 before | Expand all | Expand 10 after
187 } 187 }
188 188
189 WifiPollingPolicy* WifiDataProviderMac::NewPollingPolicy() { 189 WifiPollingPolicy* WifiDataProviderMac::NewPollingPolicy() {
190 return new GenericWifiPollingPolicy<kDefaultPollingInterval, 190 return new GenericWifiPollingPolicy<kDefaultPollingInterval,
191 kNoChangePollingInterval, 191 kNoChangePollingInterval,
192 kTwoNoChangePollingInterval, 192 kTwoNoChangePollingInterval,
193 kNoWifiPollingIntervalMilliseconds>; 193 kNoWifiPollingIntervalMilliseconds>;
194 } 194 }
195 195
196 } // namespace content 196 } // namespace content
OLDNEW
« no previous file with comments | « content/browser/geolocation/wifi_data_provider_mac.h ('k') | content/browser/gpu/browser_gpu_channel_host_factory.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698