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

Side by Side Diff: chrome/browser/geolocation/empty_device_data_provider.cc

Issue 3153031: Gateway Location Provider (Closed) Base URL: http://src.chromium.org/git/chromium.git
Patch Set: Land patch Created 10 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
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 #include "chrome/browser/geolocation/empty_device_data_provider.h" 5 #include "chrome/browser/geolocation/empty_device_data_provider.h"
6 6
7 // No platform has (cellular) radio data provider yet. 7 // No platform has (cellular) radio data provider yet.
8 // static 8 // static
9 template<> 9 template<>
10 RadioDataProviderImplBase* RadioDataProvider::DefaultFactoryFunction() { 10 RadioDataProviderImplBase* RadioDataProvider::DefaultFactoryFunction() {
11 return new EmptyDeviceDataProvider<RadioData>(); 11 return new EmptyDeviceDataProvider<RadioData>();
12 } 12 }
13 13
14 // Only define for platforms that lack a real wifi data provider. 14 // Only define for platforms that lack a real wifi data provider.
15 #if !defined(OS_WIN) && !defined(OS_MACOSX) && !defined(OS_LINUX) 15 #if !defined(OS_WIN) && !defined(OS_MACOSX) && !defined(OS_LINUX)
16 // static 16 // static
17 template<> 17 template<>
18 WifiDataProviderImplBase* WifiDataProvider::DefaultFactoryFunction() { 18 WifiDataProviderImplBase* WifiDataProvider::DefaultFactoryFunction() {
19 return new EmptyDeviceDataProvider<WifiData>(); 19 return new EmptyDeviceDataProvider<WifiData>();
20 } 20 }
21 #endif 21 #endif
22 22
23 // No platform has a gateway data provider yet.
24 // static
25 template<>
26 GatewayDataProviderImplBase* GatewayDataProvider::DefaultFactoryFunction() {
27 return new EmptyDeviceDataProvider<GatewayData>();
28 }
OLDNEW
« no previous file with comments | « chrome/browser/geolocation/device_data_provider.h ('k') | chrome/browser/geolocation/network_location_provider.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698