| OLD | NEW |
| 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_ |
| OLD | NEW |