summaryrefslogtreecommitdiffstats
path: root/chrome/browser/geolocation/wifi_data_provider_linux.h
diff options
context:
space:
mode:
authorjoth@chromium.org <joth@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2010-03-12 14:00:00 +0000
committerjoth@chromium.org <joth@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2010-03-12 14:00:00 +0000
commit4de38a38c5eb01cf6bd11dcadc93edb99272a7da (patch)
tree88fa46be69ed44b23da69c0b0bc60c09a570a979 /chrome/browser/geolocation/wifi_data_provider_linux.h
parentc822b0f0ea0e349841ff2db0393d9a9b96e60712 (diff)
downloadchromium_src-4de38a38c5eb01cf6bd11dcadc93edb99272a7da.zip
chromium_src-4de38a38c5eb01cf6bd11dcadc93edb99272a7da.tar.gz
chromium_src-4de38a38c5eb01cf6bd11dcadc93edb99272a7da.tar.bz2
First cut at implementing wifi bindigns for linux, using glib-dbus to NetworkManager
NOTE: Adds a new build dependency on dbus-glib, on ubuntu you can meet this with: $ sudo aptitude install dbus-glib-1-dev BUG=http://crbug.com/37199 TEST=use browser with --enable-geolocation Review URL: http://codereview.chromium.org/787003 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@41430 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'chrome/browser/geolocation/wifi_data_provider_linux.h')
-rw-r--r--chrome/browser/geolocation/wifi_data_provider_linux.h35
1 files changed, 8 insertions, 27 deletions
diff --git a/chrome/browser/geolocation/wifi_data_provider_linux.h b/chrome/browser/geolocation/wifi_data_provider_linux.h
index 31db8fc..b3a2771 100644
--- a/chrome/browser/geolocation/wifi_data_provider_linux.h
+++ b/chrome/browser/geolocation/wifi_data_provider_linux.h
@@ -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();
-
- // WifiDataProviderImplBase implementation
- virtual bool GetData(WifiData *data);
+ WifiDataProviderLinux();
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_