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

Unified Diff: chrome/browser/geolocation/wifi_data_provider_linux.h

Issue 787003: First cut at implementing wifi bindigns for linux, using glib-dbus to Network... (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src/
Patch Set: '' Created 10 years, 9 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 side-by-side diff with in-line comments
Download patch
Index: chrome/browser/geolocation/wifi_data_provider_linux.h
===================================================================
--- chrome/browser/geolocation/wifi_data_provider_linux.h (revision 40894)
+++ chrome/browser/geolocation/wifi_data_provider_linux.h (working copy)
@@ -5,39 +5,20 @@
#ifndef CHROME_BROWSER_GEOLOCATION_WIFI_DATA_PROVIDER_LINUX_H_
#define CHROME_BROWSER_GEOLOCATION_WIFI_DATA_PROVIDER_LINUX_H_
-// TODO(joth): port to chromium
-#if 0
+#include "chrome/browser/geolocation/wifi_data_provider_common.h"
-#include "gears/base/common/common.h"
-#include "gears/base/common/event.h"
-#include "gears/base/common/mutex.h"
-#include "gears/base/common/thread.h"
-#include "gears/geolocation/device_data_provider.h"
-
-class LinuxWifiDataProvider
- : public WifiDataProviderImplBase,
- public Thread {
+class WifiDataProviderLinux : public WifiDataProviderCommon {
public:
- LinuxWifiDataProvider();
- virtual ~LinuxWifiDataProvider();
+ WifiDataProviderLinux();
- // WifiDataProviderImplBase implementation
- virtual bool GetData(WifiData *data);
-
private:
- // Thread implementation.
- virtual void Run();
+ virtual ~WifiDataProviderLinux();
- WifiData wifi_data_;
- Mutex data_mutex_;
- // Event signalled to shut down the thread that polls for wifi data.
- Event stop_event_;
- // Whether we've successfully completed a scan for WiFi data.
- bool is_first_scan_complete_;
+ // WifiDataProviderCommon
+ virtual WlanApiInterface* NewWlanApi();
+ virtual PollingPolicyInterface* NewPollingPolicy();
- DISALLOW_COPY_AND_ASSIGN(LinuxWifiDataProvider);
+ DISALLOW_COPY_AND_ASSIGN(WifiDataProviderLinux);
};
-#endif // 0
-
#endif // CHROME_BROWSER_GEOLOCATION_WIFI_DATA_PROVIDER_LINUX_H_
« no previous file with comments | « chrome/browser/geolocation/empty_device_data_provider.cc ('k') | chrome/browser/geolocation/wifi_data_provider_linux.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698