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

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

Issue 6597044: Revert 76228 - Move core pieces of geolocation from chrome to content.This is... (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src/
Patch Set: Created 9 years, 9 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 | Annotate | Revision Log
OLDNEW
(Empty)
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
3 // found in the LICENSE file.
4
5 #include "content/browser/geolocation/empty_device_data_provider.h"
6
7 // No platform has (cellular) radio data provider yet.
8 // static
9 template<>
10 RadioDataProviderImplBase* RadioDataProvider::DefaultFactoryFunction() {
11 return new EmptyDeviceDataProvider<RadioData>();
12 }
13
14 // Only define for platforms that lack a real wifi data provider.
15 #if !defined(OS_WIN) && !defined(OS_MACOSX) && !defined(OS_LINUX)
16 // static
17 template<>
18 WifiDataProviderImplBase* WifiDataProvider::DefaultFactoryFunction() {
19 return new EmptyDeviceDataProvider<WifiData>();
20 }
21 #endif
22
23 // Only define for platforms that lack a real gateway data provider.
24 #if !defined(OS_LINUX) && !defined(OS_WIN)
25 // static
26 template<>
27 GatewayDataProviderImplBase* GatewayDataProvider::DefaultFactoryFunction() {
28 return new EmptyDeviceDataProvider<GatewayData>();
29 }
30 #endif
OLDNEW
« no previous file with comments | « content/browser/geolocation/empty_device_data_provider.h ('k') | content/browser/geolocation/fake_access_token_store.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698