#include "components/permissions/contexts/geolocation_permission_context.h"
#include "base/functional/bind.h"
#include "components/content_settings/browser/page_specific_content_settings.h"
#include "components/permissions/permission_request_id.h"
#include "content/public/browser/browser_thread.h"
#include "content/public/browser/device_service.h"
#include "content/public/browser/render_frame_host.h"
#include "content/public/browser/web_contents.h"
#include "third_party/blink/public/mojom/permissions_policy/permissions_policy_feature.mojom.h"
#include "url/origin.h"
namespace permissions {
GeolocationPermissionContext::GeolocationPermissionContext(
content::BrowserContext* browser_context,
std::unique_ptr<Delegate> delegate)
: … { … }
GeolocationPermissionContext::~GeolocationPermissionContext() = default;
void GeolocationPermissionContext::DecidePermission(
PermissionRequestData request_data,
BrowserPermissionCallback callback) { … }
base::WeakPtr<GeolocationPermissionContext>
GeolocationPermissionContext::GetWeakPtr() { … }
void GeolocationPermissionContext::UpdateTabContext(
const PermissionRequestID& id,
const GURL& requesting_frame,
bool allowed) { … }
device::mojom::GeolocationControl*
GeolocationPermissionContext::GetGeolocationControl() { … }
}