#ifndef CHROME_BROWSER_GEOLOCATION_GEOLOCATION_PERMISSION_CONTEXT_DELEGATE_H_
#define CHROME_BROWSER_GEOLOCATION_GEOLOCATION_PERMISSION_CONTEXT_DELEGATE_H_
#include "base/functional/callback.h"
#include "chrome/browser/geolocation/geolocation_permission_context_extensions.h"
#include "components/permissions/contexts/geolocation_permission_context.h"
namespace content {
class WebContents;
}
class GeolocationPermissionContextDelegate
: public permissions::GeolocationPermissionContext::Delegate {
public:
explicit GeolocationPermissionContextDelegate(
content::BrowserContext* browser_context);
GeolocationPermissionContextDelegate(
const GeolocationPermissionContextDelegate&) = delete;
GeolocationPermissionContextDelegate& operator=(
const GeolocationPermissionContextDelegate&) = delete;
~GeolocationPermissionContextDelegate() override;
bool DecidePermission(
const permissions::PermissionRequestData& request_data,
permissions::BrowserPermissionCallback* callback,
permissions::GeolocationPermissionContext* context) override;
private:
GeolocationPermissionContextExtensions extensions_context_;
};
#endif