Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(22)

Side by Side Diff: device/generic_sensor/platform_sensor_provider.h

Issue 2144623003: [sensors] Introduce Generic Sensor API interfaces (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Definition for PlatformSensorProvider ctor/dtor Created 4 years, 3 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
(Empty)
1 // Copyright 2016 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file.
4
5 #ifndef DEVICE_GENERIC_SENSOR_PLATFORM_SENSOR_PROVIDER_H_
6 #define DEVICE_GENERIC_SENSOR_PLATFORM_SENSOR_PROVIDER_H_
7
8 #include "device/generic_sensor/platform_sensor_provider_base.h"
9
10 namespace device {
11
12 // This a singleton class returning the actual sensor provider
13 // implementation for the current platform.
14 class PlatformSensorProvider : public PlatformSensorProviderBase {
15 public:
16 // Returns the PlatformSensorProvider singleton.
17 // Note: returns 'nullptr' if there is no available implementation for
18 // the current platform.
19 static PlatformSensorProvider* GetInstance();
20
21 protected:
22 PlatformSensorProvider() = default;
23 ~PlatformSensorProvider() override = default;
24
25 DISALLOW_COPY_AND_ASSIGN(PlatformSensorProvider);
26 };
27
28 } // namespace device
29
30 #endif // DEVICE_GENERIC_SENSOR_PLATFORM_SENSOR_PROVIDER_H_
OLDNEW
« no previous file with comments | « device/generic_sensor/platform_sensor_configuration.cc ('k') | device/generic_sensor/platform_sensor_provider_base.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698