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

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

Issue 6591034: Move core pieces of geolocation from chrome to content.... (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: fix Linux build 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
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 #ifndef CHROME_BROWSER_GEOLOCATION_EMPTY_DEVICE_DATA_PROVIDER_H_ 5 #ifndef CONTENT_BROWSER_GEOLOCATION_EMPTY_DEVICE_DATA_PROVIDER_H_
6 #define CHROME_BROWSER_GEOLOCATION_EMPTY_DEVICE_DATA_PROVIDER_H_ 6 #define CONTENT_BROWSER_GEOLOCATION_EMPTY_DEVICE_DATA_PROVIDER_H_
7 #pragma once 7 #pragma once
8 8
9 #include "chrome/browser/geolocation/device_data_provider.h" 9 #include "content/browser/geolocation/device_data_provider.h"
10 10
11 // An implementation of DeviceDataProviderImplBase that does not provide any 11 // An implementation of DeviceDataProviderImplBase that does not provide any
12 // data. Used on platforms where a given data type is not available. 12 // data. Used on platforms where a given data type is not available.
13 13
14 template<typename DataType> 14 template<typename DataType>
15 class EmptyDeviceDataProvider : public DeviceDataProviderImplBase<DataType> { 15 class EmptyDeviceDataProvider : public DeviceDataProviderImplBase<DataType> {
16 public: 16 public:
17 EmptyDeviceDataProvider() {} 17 EmptyDeviceDataProvider() {}
18 virtual ~EmptyDeviceDataProvider() {} 18 virtual ~EmptyDeviceDataProvider() {}
19 19
20 // DeviceDataProviderImplBase implementation 20 // DeviceDataProviderImplBase implementation
21 virtual bool StartDataProvider() { return true; } 21 virtual bool StartDataProvider() { return true; }
22 virtual void StopDataProvider() { } 22 virtual void StopDataProvider() { }
23 virtual bool GetData(DataType *data) { 23 virtual bool GetData(DataType *data) {
24 DCHECK(data); 24 DCHECK(data);
25 // This is all the data we can get - nothing. 25 // This is all the data we can get - nothing.
26 return true; 26 return true;
27 } 27 }
28 28
29 private: 29 private:
30 DISALLOW_COPY_AND_ASSIGN(EmptyDeviceDataProvider); 30 DISALLOW_COPY_AND_ASSIGN(EmptyDeviceDataProvider);
31 }; 31 };
32 32
33 #endif // CHROME_BROWSER_GEOLOCATION_EMPTY_DEVICE_DATA_PROVIDER_H_ 33 #endif // CONTENT_BROWSER_GEOLOCATION_EMPTY_DEVICE_DATA_PROVIDER_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698