Home | History | Annotate | Download | only in geolocation
      1 // Copyright 2013 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 #include "content/browser/geolocation/empty_wifi_data_provider.h"
      6 
      7 namespace content {
      8 
      9 EmptyWifiDataProvider::EmptyWifiDataProvider() {
     10 }
     11 
     12 EmptyWifiDataProvider::~EmptyWifiDataProvider() {
     13 }
     14 
     15 bool EmptyWifiDataProvider::GetData(WifiData* data) {
     16   DCHECK(data);
     17   // This is all the data we can get - nothing.
     18   return true;
     19 }
     20 
     21 // static
     22 WifiDataProviderImplBase* WifiDataProvider::DefaultFactoryFunction() {
     23   return new EmptyWifiDataProvider();
     24 }
     25 
     26 }  // namespace content
     27