// Copyright © 2010-2014 The CefSharp Authors. All rights reserved.
//
// Use of this source code is governed by a BSD-style license that can be found in the LICENSE file.
namespace CefSharp
{
public interface IGeolocationHandler
{
///
/// Called when a page requests permission to access geolocation information.
///
/// the browser object
/// the URL requesting permission
/// the unique ID for the permission request
/// true to allow the request and false to deny
bool OnRequestGeolocationPermission(IWebBrowser browser, string requestingUrl, int requestId);
///
/// Called when a geolocation access request is canceled.
///
/// the browser object
/// the URL that originally requested permission
/// the unique ID for the permission request, as seen in
void OnCancelGeolocationPermission(IWebBrowser browser, string requestingUrl, int requestId);
}
}