blob: 31db8fce645d5042eb1a0e89f861e50b9ce81ad4 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
|
// 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_
|