blob: b619cd320dfb0f95dd809236c46dac3a4491ddfc [file] [log] [blame]
// Copyright 2013 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 DEVICE_GEOLOCATION_EMPTY_WIFI_DATA_PROVIDER_H_
#define DEVICE_GEOLOCATION_EMPTY_WIFI_DATA_PROVIDER_H_
#include "base/macros.h"
#include "device/geolocation/wifi_data_provider.h"
namespace device {
// An implementation of WifiDataProvider that does not provide any
// data. Used on platforms where a real implementation is not available.
class EmptyWifiDataProvider : public WifiDataProvider {
public:
EmptyWifiDataProvider();
// WifiDataProvider implementation
void StartDataProvider() override {}
void StopDataProvider() override {}
bool GetData(WifiData* data) override;
private:
~EmptyWifiDataProvider() override;
DISALLOW_COPY_AND_ASSIGN(EmptyWifiDataProvider);
};
} // namespace device
#endif // DEVICE_GEOLOCATION_EMPTY_WIFI_DATA_PROVIDER_H_