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

Side by Side Diff: content/browser/geolocation/wifi_data_provider_linux.h

Issue 7725001: Rework wifi_data_provider_linux.cc with our D-Bus library. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: add expectation for shutdownandblock Created 9 years, 4 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
« no previous file with comments | « content/DEPS ('k') | content/browser/geolocation/wifi_data_provider_linux.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright (c) 2010 The Chromium Authors. All rights reserved. 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 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #ifndef CONTENT_BROWSER_GEOLOCATION_WIFI_DATA_PROVIDER_LINUX_H_ 5 #ifndef CONTENT_BROWSER_GEOLOCATION_WIFI_DATA_PROVIDER_LINUX_H_
6 #define CONTENT_BROWSER_GEOLOCATION_WIFI_DATA_PROVIDER_LINUX_H_ 6 #define CONTENT_BROWSER_GEOLOCATION_WIFI_DATA_PROVIDER_LINUX_H_
7 #pragma once 7 #pragma once
8 8
9 #include "content/browser/geolocation/wifi_data_provider_common.h" 9 #include "content/browser/geolocation/wifi_data_provider_common.h"
10 10
11 namespace dbus {
12 class Bus;
13 };
14
11 class WifiDataProviderLinux : public WifiDataProviderCommon { 15 class WifiDataProviderLinux : public WifiDataProviderCommon {
12 public: 16 public:
13 WifiDataProviderLinux(); 17 WifiDataProviderLinux();
14 18
15 private: 19 private:
20 friend class GeolocationWifiDataProviderLinuxTest;
21
16 virtual ~WifiDataProviderLinux(); 22 virtual ~WifiDataProviderLinux();
17 23
18 // WifiDataProviderCommon 24 // WifiDataProviderCommon
19 virtual WlanApiInterface* NewWlanApi(); 25 virtual WlanApiInterface* NewWlanApi();
20 virtual PollingPolicyInterface* NewPollingPolicy(); 26 virtual PollingPolicyInterface* NewPollingPolicy();
21 27
28 // For testing.
29 WlanApiInterface* NewWlanApiForTesting(dbus::Bus* bus);
30
22 DISALLOW_COPY_AND_ASSIGN(WifiDataProviderLinux); 31 DISALLOW_COPY_AND_ASSIGN(WifiDataProviderLinux);
23 }; 32 };
24 33
25 #endif // CONTENT_BROWSER_GEOLOCATION_WIFI_DATA_PROVIDER_LINUX_H_ 34 #endif // CONTENT_BROWSER_GEOLOCATION_WIFI_DATA_PROVIDER_LINUX_H_
OLDNEW
« no previous file with comments | « content/DEPS ('k') | content/browser/geolocation/wifi_data_provider_linux.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698