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

Side by Side Diff: content/browser/geolocation/wifi_data_provider_chromeos.h

Issue 474433003: Cleaner organization of WifiDataProvider code. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Rabase and rename arguments to manager Created 6 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 | Annotate | Revision Log
OLDNEW
1 // Copyright (c) 2011 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2011 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 CONTENT_BROWSER_GEOLOCATION_WIFI_DATA_PROVIDER_CHROMEOS_H_ 5 #ifndef CONTENT_BROWSER_GEOLOCATION_WIFI_DATA_PROVIDER_CHROMEOS_H_
6 #define CONTENT_BROWSER_GEOLOCATION_WIFI_DATA_PROVIDER_CHROMEOS_H_ 6 #define CONTENT_BROWSER_GEOLOCATION_WIFI_DATA_PROVIDER_CHROMEOS_H_
7 7
8 #include "base/compiler_specific.h" 8 #include "base/compiler_specific.h"
9 #include "content/browser/geolocation/wifi_data_provider.h" 9 #include "content/browser/geolocation/wifi_data_provider.h"
10 #include "content/browser/geolocation/wifi_polling_policy.h" 10 #include "content/browser/geolocation/wifi_polling_policy.h"
11 11
12 namespace content { 12 namespace content {
13 13
14 class CONTENT_EXPORT WifiDataProviderChromeOs 14 class CONTENT_EXPORT WifiDataProviderChromeOs : public WifiDataProvider {
15 : public WifiDataProviderImplBase {
16 public: 15 public:
17 WifiDataProviderChromeOs(); 16 WifiDataProviderChromeOs();
18 17
19 // WifiDataProviderImplBase 18 // WifiDataProvider
20 virtual void StartDataProvider() OVERRIDE; 19 virtual void StartDataProvider() OVERRIDE;
21 virtual void StopDataProvider() OVERRIDE; 20 virtual void StopDataProvider() OVERRIDE;
22 virtual bool GetData(WifiData* data) OVERRIDE; 21 virtual bool GetData(WifiData* data) OVERRIDE;
23 22
24 private: 23 private:
25 friend class GeolocationChromeOsWifiDataProviderTest; 24 friend class GeolocationChromeOsWifiDataProviderTest;
26 virtual ~WifiDataProviderChromeOs(); 25 virtual ~WifiDataProviderChromeOs();
27 26
28 // UI thread 27 // UI thread
29 void DoWifiScanTaskOnUIThread(); // The polling task 28 void DoWifiScanTaskOnUIThread(); // The polling task
(...skipping 26 matching lines...) Expand all
56 55
57 // Whether we've successfully completed a scan for WiFi data. (client thread) 56 // Whether we've successfully completed a scan for WiFi data. (client thread)
58 bool is_first_scan_complete_; 57 bool is_first_scan_complete_;
59 58
60 DISALLOW_COPY_AND_ASSIGN(WifiDataProviderChromeOs); 59 DISALLOW_COPY_AND_ASSIGN(WifiDataProviderChromeOs);
61 }; 60 };
62 61
63 } // namespace content 62 } // namespace content
64 63
65 #endif // CONTENT_BROWSER_GEOLOCATION_WIFI_DATA_PROVIDER_CHROMEOS_H_ 64 #endif // CONTENT_BROWSER_GEOLOCATION_WIFI_DATA_PROVIDER_CHROMEOS_H_
OLDNEW
« no previous file with comments | « content/browser/geolocation/wifi_data_provider.cc ('k') | content/browser/geolocation/wifi_data_provider_chromeos.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698