NavigatorGeolocation.h [plain text]
#ifndef NavigatorGeolocation_h
#define NavigatorGeolocation_h
#if ENABLE(GEOLOCATION)
#include "DOMWindowProperty.h"
#include "Supplementable.h"
namespace WebCore {
class Frame;
class Geolocation;
class Navigator;
class NavigatorGeolocation : public Supplement<Navigator>, public DOMWindowProperty {
WTF_MAKE_FAST_ALLOCATED;
public:
explicit NavigatorGeolocation(Frame*);
virtual ~NavigatorGeolocation();
static NavigatorGeolocation* from(Navigator*);
static Geolocation* geolocation(Navigator&);
Geolocation* geolocation() const;
#if PLATFORM(IOS)
void resetAllGeolocationPermission();
#endif // PLATFORM(IOS)
private:
static const char* supplementName();
mutable RefPtr<Geolocation> m_geolocation;
};
}
#endif // ENABLE(GEOLOCATION)
#endif // NavigatorGeolocation_h