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

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

Issue 2608163003: Change single-interface mojo bindings to use SequencedTaskRunner. (Closed)
Patch Set: Created 3 years, 10 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
1 // Copyright 2016 The Chromium Authors. All rights reserved. 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 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #ifndef DEVICE_GENERIC_SENSOR_SENSOR_PROVIDER_IMPL_H_ 5 #ifndef DEVICE_GENERIC_SENSOR_SENSOR_PROVIDER_IMPL_H_
6 #define DEVICE_GENERIC_SENSOR_SENSOR_PROVIDER_IMPL_H_ 6 #define DEVICE_GENERIC_SENSOR_SENSOR_PROVIDER_IMPL_H_
7 7
8 #include "base/macros.h" 8 #include "base/macros.h"
9 #include "device/generic_sensor/generic_sensor_export.h" 9 #include "device/generic_sensor/generic_sensor_export.h"
10 #include "device/generic_sensor/public/interfaces/sensor_provider.mojom.h" 10 #include "device/generic_sensor/public/interfaces/sensor_provider.mojom.h"
11 11
12 namespace base {
13 class SingleThreadTaskRunner;
14 }
15
12 namespace device { 16 namespace device {
13 17
14 class PlatformSensorProvider; 18 class PlatformSensorProvider;
15 class PlatformSensor; 19 class PlatformSensor;
16 20
17 // Implementation of SensorProvider mojo interface. 21 // Implementation of SensorProvider mojo interface.
18 // Uses PlatformSensorProvider singleton to create platform specific instances 22 // Uses PlatformSensorProvider singleton to create platform specific instances
19 // of PlatformSensor which are used by SensorImpl. 23 // of PlatformSensor which are used by SensorImpl.
20 class DEVICE_GENERIC_SENSOR_EXPORT SensorProviderImpl final 24 class DEVICE_GENERIC_SENSOR_EXPORT SensorProviderImpl final
21 : public mojom::SensorProvider { 25 : public mojom::SensorProvider {
(...skipping 21 matching lines...) Expand all
43 47
44 PlatformSensorProvider* provider_; 48 PlatformSensorProvider* provider_;
45 base::WeakPtrFactory<SensorProviderImpl> weak_ptr_factory_; 49 base::WeakPtrFactory<SensorProviderImpl> weak_ptr_factory_;
46 50
47 DISALLOW_COPY_AND_ASSIGN(SensorProviderImpl); 51 DISALLOW_COPY_AND_ASSIGN(SensorProviderImpl);
48 }; 52 };
49 53
50 } // namespace device 54 } // namespace device
51 55
52 #endif // DEVICE_GENERIC_SENSOR_SENSOR_PROVIDER_IMPL_H_ 56 #endif // DEVICE_GENERIC_SENSOR_SENSOR_PROVIDER_IMPL_H_
OLDNEW
« no previous file with comments | « device/generic_sensor/platform_sensor_reader_win.h ('k') | device/generic_sensor/sensor_provider_impl.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698