// Copyright (c) 2010 The Chromium Authors. All rights reserved. // Use of this source code is governed by a BSD-style license that can be // found in the LICENSE file. #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 "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 { public: LinuxWifiDataProvider(); virtual ~LinuxWifiDataProvider(); // WifiDataProviderImplBase implementation virtual bool GetData(WifiData *data); private: // Thread implementation. virtual void Run(); 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_; DISALLOW_COPY_AND_ASSIGN(LinuxWifiDataProvider); }; #endif // 0 #endif // CHROME_BROWSER_GEOLOCATION_WIFI_DATA_PROVIDER_LINUX_H_