chromium/services/device/generic_sensor/platform_sensor.cc

// Copyright 2016 The Chromium Authors
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.

#include "services/device/generic_sensor/platform_sensor.h"

#include <list>
#include <utility>

#include "base/check.h"
#include "base/functional/bind.h"
#include "base/functional/callback.h"
#include "base/observer_list.h"
#include "base/task/sequenced_task_runner.h"
#include "services/device/generic_sensor/platform_sensor_provider.h"
#include "services/device/generic_sensor/platform_sensor_util.h"
#include "services/device/public/cpp/generic_sensor/platform_sensor_configuration.h"
#include "services/device/public/cpp/generic_sensor/sensor_reading_shared_buffer.h"
#include "services/device/public/cpp/generic_sensor/sensor_reading_shared_buffer_reader.h"

namespace device {

PlatformSensor::PlatformSensor(mojom::SensorType type,
                               SensorReadingSharedBuffer* reading_buffer,
                               base::WeakPtr<PlatformSensorProvider> provider)
    :{}

PlatformSensor::~PlatformSensor() {}

mojom::SensorType PlatformSensor::GetType() const {}

double PlatformSensor::GetMaximumSupportedFrequency() {}

double PlatformSensor::GetMinimumSupportedFrequency() {}

void PlatformSensor::SensorReplaced() {}

bool PlatformSensor::StartListening(Client* client,
                                    const PlatformSensorConfiguration& config) {}

bool PlatformSensor::StopListening(Client* client,
                                   const PlatformSensorConfiguration& config) {}

bool PlatformSensor::StopListening(Client* client) {}

void PlatformSensor::UpdateSensor() {}

void PlatformSensor::AddClient(Client* client) {}

void PlatformSensor::RemoveClient(Client* client) {}

bool PlatformSensor::GetLatestReading(SensorReading* result) {}

bool PlatformSensor::GetLatestRawReading(SensorReading* result) const {}

void PlatformSensor::UpdateSharedBufferAndNotifyClients(
    const SensorReading& reading) {}

bool PlatformSensor::UpdateSharedBuffer(const SensorReading& reading) {}

void PlatformSensor::ResetSharedBuffer() {}

void PlatformSensor::WriteToSharedBuffer(const SensorReading& reading) {}

void PlatformSensor::NotifySensorReadingChanged() {}

void PlatformSensor::NotifySensorError() {}

void PlatformSensor::ResetReadingBuffer() {}

bool PlatformSensor::UpdateSensorInternal(const ConfigMap& configurations) {}

bool PlatformSensor::IsActiveForTesting() const {}

auto PlatformSensor::GetConfigMapForTesting() const -> const ConfigMap& {}

void PlatformSensor::PostTaskToMainSequence(const base::Location& location,
                                            base::OnceClosure task) {}

bool PlatformSensor::IsSignificantlyDifferent(const SensorReading& lhs,
                                              const SensorReading& rhs,
                                              mojom::SensorType sensor_type) {}

base::WeakPtr<PlatformSensor> PlatformSensor::AsWeakPtr() {}

}  // namespace device