summaryrefslogtreecommitdiff
path: root/Source/WebCore/Modules/geolocation/NavigatorGeolocation.h
diff options
context:
space:
mode:
authorLorry Tar Creator <lorry-tar-importer@lorry>2017-06-27 06:07:23 +0000
committerLorry Tar Creator <lorry-tar-importer@lorry>2017-06-27 06:07:23 +0000
commit1bf1084f2b10c3b47fd1a588d85d21ed0eb41d0c (patch)
tree46dcd36c86e7fbc6e5df36deb463b33e9967a6f7 /Source/WebCore/Modules/geolocation/NavigatorGeolocation.h
parent32761a6cee1d0dee366b885b7b9c777e67885688 (diff)
downloadWebKitGtk-tarball-master.tar.gz
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