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/Ref.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*);
void notifyPositionChanged(int, double, double, double, double, double) override;
void notifyErrorOccurred(const char*) override;
RefPtr<WebGeolocationManagerProxy> m_geolocationManager;
WebCore::GeolocationProviderGeoclue m_provider;
};
}
#endif // ENABLE(GEOLOCATION)
#endif // WebKitGeolocationProvider_h