summaryrefslogtreecommitdiffstats
path: root/content/browser/geolocation/empty_wifi_data_provider.h
blob: a02ed2bc9b7fe574950a1869255ed88058e0c3cf (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
// 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 CONTENT_BROWSER_GEOLOCATION_EMPTY_WIFI_DATA_PROVIDER_H_
#define CONTENT_BROWSER_GEOLOCATION_EMPTY_WIFI_DATA_PROVIDER_H_

#include "content/browser/geolocation/wifi_data_provider.h"

namespace content {

// An implementation of WifiDataProviderImplBase that does not provide any
// data. Used on platforms where a real implementation is not available.
class EmptyWifiDataProvider : public WifiDataProviderImplBase {
 public:
  EmptyWifiDataProvider();

  // WifiDataProviderImplBase implementation
  virtual void StartDataProvider() OVERRIDE { }
  virtual void StopDataProvider() OVERRIDE { }
  virtual bool GetData(WifiData* data) OVERRIDE;

 private:
  virtual ~EmptyWifiDataProvider();

  DISALLOW_COPY_AND_ASSIGN(EmptyWifiDataProvider);
};

}  // namespace content

#endif  // CONTENT_BROWSER_GEOLOCATION_EMPTY_WIFI_DATA_PROVIDER_H_