diff options
author | Lorry Tar Creator <lorry-tar-importer@lorry> | 2017-06-27 06:07:23 +0000 |
---|---|---|
committer | Lorry Tar Creator <lorry-tar-importer@lorry> | 2017-06-27 06:07:23 +0000 |
commit | 1bf1084f2b10c3b47fd1a588d85d21ed0eb41d0c (patch) | |
tree | 46dcd36c86e7fbc6e5df36deb463b33e9967a6f7 /Source/WebCore/Modules/geolocation/NavigatorGeolocation.h | |
parent | 32761a6cee1d0dee366b885b7b9c777e67885688 (diff) | |
download | WebKitGtk-tarball-master.tar.gz |
webkitgtk-2.16.5HEADwebkitgtk-2.16.5master
Diffstat (limited to 'Source/WebCore/Modules/geolocation/NavigatorGeolocation.h')
-rw-r--r-- | Source/WebCore/Modules/geolocation/NavigatorGeolocation.h | 10 |
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 |