#include "services/device/geolocation/geolocation_impl.h"
#include <utility>
#include "base/functional/bind.h"
#include "base/metrics/histogram_functions.h"
#include "services/device/geolocation/geolocation_context.h"
#include "services/device/public/cpp/geolocation/geoposition.h"
namespace device {
namespace {
void RecordUmaGeolocationImplClientId(mojom::GeolocationClientId client_id) { … }
}
GeolocationImpl::GeolocationImpl(mojo::PendingReceiver<Geolocation> receiver,
const GURL& requesting_url,
mojom::GeolocationClientId client_id,
GeolocationContext* context)
: … { … }
GeolocationImpl::~GeolocationImpl() { … }
void GeolocationImpl::PauseUpdates() { … }
void GeolocationImpl::ResumeUpdates() { … }
void GeolocationImpl::StartListeningForUpdates() { … }
void GeolocationImpl::SetHighAccuracy(bool high_accuracy) { … }
void GeolocationImpl::QueryNextPosition(QueryNextPositionCallback callback) { … }
void GeolocationImpl::SetOverride(const mojom::GeopositionResult& result) { … }
void GeolocationImpl::ClearOverride() { … }
void GeolocationImpl::OnPermissionRevoked() { … }
void GeolocationImpl::OnConnectionError() { … }
void GeolocationImpl::OnLocationUpdate(const mojom::GeopositionResult& result) { … }
void GeolocationImpl::ReportCurrentPosition() { … }
}