diff --git a/src/core/content_browser_client_qt.cpp b/src/core/content_browser_client_qt.cpp index 28294dce7da5467e20e5d1b77b68bd1572b39e30..3ead5314f9fad23d11fd57d9c776befca93a1110 100644 --- a/src/core/content_browser_client_qt.cpp +++ b/src/core/content_browser_client_qt.cpp @@ -386,3 +386,20 @@ void ContentBrowserClientQt::AllowCertificateError(int render_process_id, int re QExplicitlySharedDataPointer<CertificateErrorController> errorController(new CertificateErrorController(new CertificateErrorControllerPrivate(cert_error, ssl_info, request_url, resource_type, overridable, strict_enforcement, callback))); contentsDelegate->allowCertificateError(errorController); } + +void ContentBrowserClientQt::RequestGeolocationPermission(content::WebContents *webContents, + int bridge_id, + const GURL &requesting_frame, + bool user_gesture, + base::Callback<void(bool)> result_callback, + base::Closure *cancel_callback) +{ + Q_UNUSED(webContents); + Q_UNUSED(bridge_id); + Q_UNUSED(requesting_frame); + Q_UNUSED(user_gesture); + Q_UNUSED(cancel_callback); + + // TODO: Add geolocation support + result_callback.Run(false); +} diff --git a/src/core/content_browser_client_qt.h b/src/core/content_browser_client_qt.h index 9cf1695fe702bad6c78ae197e9e56e8b32dfa454..dd5d9f3a1cbe0bc18ce9150ac927e42087be630f 100644 --- a/src/core/content_browser_client_qt.h +++ b/src/core/content_browser_client_qt.h @@ -90,6 +90,13 @@ public: bool strict_enforcement, const base::Callback<void(bool)>& callback, content::CertificateRequestResultType* result) Q_DECL_OVERRIDE; + virtual void RequestGeolocationPermission( + content::WebContents *webContents, + int bridge_id, + const GURL &requesting_frame, + bool user_gesture, + base::Callback<void(bool)> result_callback, + base::Closure *cancel_callback) Q_DECL_OVERRIDE; BrowserContextQt* browser_context();