bool WebGeolocationPermissionRequestManager::remove(int id, WebGeolocationPermissionRequest& permissionRequest)
{
    WebGeolocationPermissionRequestManagerPrivate* manager = ensureManager();
    IdGeolocationMap::iterator it = manager->m_idGeolocationMap.find(id);
    if (it == manager->m_idGeolocationMap.end())
        return false;
    Geolocation* geolocation = it->value;
    permissionRequest = WebGeolocationPermissionRequest(geolocation);
    manager->m_idGeolocationMap.remove(it);
    manager->m_geolocationIdMap.remove(geolocation);
    return true;
}
void GeolocationClientProxy::cancelPermissionRequest(WebCore::Geolocation* geolocation)
{
    m_client->cancelPermissionRequest(WebGeolocationPermissionRequest(geolocation));
}
void GeolocationClientProxy::requestPermission(WebCore::Geolocation* geolocation)
{
    m_client->requestPermission(WebGeolocationPermissionRequest(geolocation));
}