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

Side by Side Diff: device/generic_sensor/platform_sensor_reader_win.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
« no previous file with comments | « device/generic_sensor/platform_sensor.h ('k') | device/generic_sensor/sensor_provider_impl.h » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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_PLATFORM_SENSOR_READER_WIN_H_ 5 #ifndef DEVICE_GENERIC_SENSOR_PLATFORM_SENSOR_READER_WIN_H_
6 #define DEVICE_GENERIC_SENSOR_PLATFORM_SENSOR_READER_WIN_H_ 6 #define DEVICE_GENERIC_SENSOR_PLATFORM_SENSOR_READER_WIN_H_
7 7
8 #include <SensorsApi.h> 8 #include <SensorsApi.h>
9 9
10 #include "base/win/scoped_comptr.h" 10 #include "base/win/scoped_comptr.h"
11 #include "device/generic_sensor/public/interfaces/sensor.mojom.h" 11 #include "device/generic_sensor/public/interfaces/sensor.mojom.h"
12 12
13 namespace base {
14 class SingleThreadTaskRunner;
15 }
16
13 namespace device { 17 namespace device {
14 18
15 class PlatformSensorConfiguration; 19 class PlatformSensorConfiguration;
16 struct ReaderInitParams; 20 struct ReaderInitParams;
17 struct SensorReading; 21 struct SensorReading;
18 22
19 // Generic class that uses ISensor interface to fetch sensor data. Used 23 // Generic class that uses ISensor interface to fetch sensor data. Used
20 // by PlatformSensorWin and delivers notifications via Client interface. 24 // by PlatformSensorWin and delivers notifications via Client interface.
21 // Instances of this class must be created and destructed on the same thread. 25 // Instances of this class must be created and destructed on the same thread.
22 class PlatformSensorReaderWin { 26 class PlatformSensorReaderWin {
(...skipping 50 matching lines...) Expand 10 before | Expand all | Expand 10 after
73 base::win::ScopedComPtr<ISensor> sensor_; 77 base::win::ScopedComPtr<ISensor> sensor_;
74 scoped_refptr<EventListener> event_listener_; 78 scoped_refptr<EventListener> event_listener_;
75 base::WeakPtrFactory<PlatformSensorReaderWin> weak_factory_; 79 base::WeakPtrFactory<PlatformSensorReaderWin> weak_factory_;
76 80
77 DISALLOW_COPY_AND_ASSIGN(PlatformSensorReaderWin); 81 DISALLOW_COPY_AND_ASSIGN(PlatformSensorReaderWin);
78 }; 82 };
79 83
80 } // namespace device 84 } // namespace device
81 85
82 #endif // DEVICE_GENERIC_SENSOR_PLATFORM_SENSOR_READER_WIN_H_ 86 #endif // DEVICE_GENERIC_SENSOR_PLATFORM_SENSOR_READER_WIN_H_
OLDNEW
« no previous file with comments | « device/generic_sensor/platform_sensor.h ('k') | device/generic_sensor/sensor_provider_impl.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698