WebKitGeolocationProvider.h [plain text]
#ifndef WebKitGeolocationProvider_h
#define WebKitGeolocationProvider_h
#if ENABLE(GEOLOCATION)
#include "WebKitPrivate.h"
#include <WebCore/GeolocationProviderGeoclue.h>
#include <WebCore/GeolocationProviderGeoclueClient.h>
#include <wtf/PassRefPtr.h>
#include <wtf/RefCounted.h>
namespace WebKit {
class WebKitGeolocationProvider : public RefCounted<WebKitGeolocationProvider>, public WebCore::GeolocationProviderGeoclueClient {
public:
virtual ~WebKitGeolocationProvider();
static Ref<WebKitGeolocationProvider> create(WebGeolocationManagerProxy*);
void startUpdating();
void stopUpdating();
private:
WebKitGeolocationProvider(WebGeolocationManagerProxy*);
virtual void notifyPositionChanged(int, double, double, double, double, double);
virtual void notifyErrorOccurred(const char*);
RefPtr<WebGeolocationManagerProxy> m_geolocationManager;
WebCore::GeolocationProviderGeoclue m_provider;
};
}
#endif // ENABLE(GEOLOCATION)
#endif // WebKitGeolocationProvider_h