summaryrefslogtreecommitdiff
path: root/Source/WebCore/Modules/geolocation/NavigatorGeolocation.h
diff options
context:
space:
mode:
Diffstat (limited to 'Source/WebCore/Modules/geolocation/NavigatorGeolocation.h')
-rw-r--r--Source/WebCore/Modules/geolocation/NavigatorGeolocation.h10
1 files changed, 4 insertions, 6 deletions
diff --git a/Source/WebCore/Modules/geolocation/NavigatorGeolocation.h b/Source/WebCore/Modules/geolocation/NavigatorGeolocation.h
index c5f654002..83f8e25c0 100644
--- a/Source/WebCore/Modules/geolocation/NavigatorGeolocation.h
+++ b/Source/WebCore/Modules/geolocation/NavigatorGeolocation.h
@@ -17,8 +17,7 @@
Boston, MA 02110-1301, USA.
*/
-#ifndef NavigatorGeolocation_h
-#define NavigatorGeolocation_h
+#pragma once
#if ENABLE(GEOLOCATION)
@@ -32,11 +31,13 @@ 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*);
+ static Geolocation* geolocation(Navigator&);
Geolocation* geolocation() const;
#if PLATFORM(IOS)
@@ -44,7 +45,6 @@ public:
#endif // PLATFORM(IOS)
private:
- NavigatorGeolocation(Frame*);
static const char* supplementName();
mutable RefPtr<Geolocation> m_geolocation;
@@ -53,5 +53,3 @@ private:
} // namespace WebCore
#endif // ENABLE(GEOLOCATION)
-
-#endif // NavigatorGeolocation_h