diff options
Diffstat (limited to 'chromium/third_party/WebKit/public/web/WebGeolocationPermissionRequest.h')
-rw-r--r-- | chromium/third_party/WebKit/public/web/WebGeolocationPermissionRequest.h | 13 |
1 files changed, 6 insertions, 7 deletions
diff --git a/chromium/third_party/WebKit/public/web/WebGeolocationPermissionRequest.h b/chromium/third_party/WebKit/public/web/WebGeolocationPermissionRequest.h index 5236f6d2587..38ed97a41e4 100644 --- a/chromium/third_party/WebKit/public/web/WebGeolocationPermissionRequest.h +++ b/chromium/third_party/WebKit/public/web/WebGeolocationPermissionRequest.h @@ -43,20 +43,19 @@ class WebSecurityOrigin; // WebGeolocationClient::cancelPermissionRequest (request cancelled). class WebGeolocationPermissionRequest { public: + ~WebGeolocationPermissionRequest() { reset(); } BLINK_EXPORT WebSecurityOrigin securityOrigin() const; BLINK_EXPORT void setIsAllowed(bool); #if BLINK_IMPLEMENTATION - WebGeolocationPermissionRequest(WebCore::Geolocation* geolocation) - : m_private(geolocation) - { - } - - WebCore::Geolocation* geolocation() const { return m_private; } + WebGeolocationPermissionRequest(WebCore::Geolocation*); + WebCore::Geolocation* geolocation() const { return m_private.get(); } #endif private: - WebCore::Geolocation* m_private; + BLINK_EXPORT void reset(); + + WebPrivatePtr<WebCore::Geolocation> m_private; }; } |