// 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. #ifndef SERVICES_DEVICE_GENERIC_SENSOR_PLATFORM_SENSOR_READER_LINUX_H_ #define SERVICES_DEVICE_GENERIC_SENSOR_PLATFORM_SENSOR_READER_LINUX_H_ #include "base/functional/callback.h" #include "base/memory/weak_ptr.h" namespace device { class PlatformSensorConfiguration; class PlatformSensorLinux; struct SensorInfoLinux; // A generic reader class that can be implemented with two different strategies: // polling and on trigger. All methods are not thread-safe and must be called // on a polling thread that allows I/O. class SensorReader { … }; } // namespace device #endif // SERVICES_DEVICE_GENERIC_SENSOR_PLATFORM_SENSOR_READER_LINUX_H_