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

Side by Side Diff: chrome/browser/geolocation/wifi_data_provider_mac.h

Issue 543174: Update Gears wifi data providers to Chrome style & APIs.... (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: '' Created 10 years, 11 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
(Empty)
1 // Copyright (c) 2010 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file.
4
5 #ifndef CHROME_BROWSER_GEOLOCATION_WIFI_DATA_PROVIDER_MAC_H_
6 #define CHROME_BROWSER_GEOLOCATION_WIFI_DATA_PROVIDER_MAC_H_
7
8 // TODO(joth): port to chromium
9 #if 0
10
11 #include "gears/base/common/common.h"
12 #include "gears/base/common/event.h"
13 #include "gears/base/common/mutex.h"
14 #include "gears/base/common/thread.h"
15 #include "gears/geolocation/device_data_provider.h"
16 #include "gears/geolocation/osx_wifi.h"
17
18 class OsxWifiDataProvider
19 : public WifiDataProviderImplBase,
20 public Thread {
21 public:
22 OsxWifiDataProvider();
23 virtual ~OsxWifiDataProvider();
24
25 // WifiDataProviderImplBase implementation.
26 virtual bool GetData(WifiData *data);
27
28 private:
29 // Thread implementation.
30 virtual void Run();
31
32 void GetAccessPointData(WifiData::AccessPointDataSet *access_points);
33
34 // Context and function pointers for Apple80211 library.
35 WirelessContextPtr wifi_context_;
36 WirelessAttachFunction WirelessAttach_function_;
37 WirelessScanSplitFunction WirelessScanSplit_function_;
38 WirelessDetachFunction WirelessDetach_function_;
39
40 WifiData wifi_data_;
41 Mutex data_mutex_;
42
43 // Event signalled to shut down the thread that polls for wifi data.
44 Event stop_event_;
45
46 // Whether we've successfully completed a scan for WiFi data (or the polling
47 // thread has terminated early).
48 bool is_first_scan_complete_;
49
50 DISALLOW_COPY_AND_ASSIGN(OsxWifiDataProvider);
51 };
52
53 #endif // 0
54
55 #endif // CHROME_BROWSER_GEOLOCATION_WIFI_DATA_PROVIDER_MAC_H_
OLDNEW
« no previous file with comments | « chrome/browser/geolocation/wifi_data_provider_linux.cc ('k') | chrome/browser/geolocation/wifi_data_provider_mac.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698