OLD | NEW |
(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 // This file declares a CoreLocation provider that runs on Mac OS X (10.6). |
| 6 // Public for testing only - for normal usage this header should not be |
| 7 // required, as location_provider.h declares the needed factory function. |
| 8 |
| 9 #ifndef CHROME_BROWSER_GEOLOCATION_CORE_LOCATION_PROVIDER_MAC_H_ |
| 10 #define CHROME_BROWSER_GEOLOCATION_CORE_LOCATION_PROVIDER_MAC_H_ |
| 11 #pragma once |
| 12 |
| 13 #include "chrome/browser/geolocation/location_provider.h" |
| 14 #include "chrome/common/geoposition.h" |
| 15 |
| 16 class CoreLocationDataProviderMac; |
| 17 |
| 18 class CoreLocationProviderMac : public LocationProviderBase { |
| 19 public: |
| 20 explicit CoreLocationProviderMac(); |
| 21 ~CoreLocationProviderMac(); |
| 22 |
| 23 // LocationProvider |
| 24 virtual bool StartProvider(bool high_accuracy); |
| 25 virtual void StopProvider(); |
| 26 virtual void GetPosition(Geoposition* position); |
| 27 |
| 28 // Receives new positions and calls UpdateListeners |
| 29 void SetPosition(Geoposition* position); |
| 30 |
| 31 private: |
| 32 CoreLocationDataProviderMac* data_provider_; |
| 33 Geoposition position_; |
| 34 }; |
| 35 |
| 36 #endif |
OLD | NEW |