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

Side by Side Diff: device/generic_sensor/platform_sensor.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_PLATFORM_SENSOR_H_ 5 #ifndef DEVICE_GENERIC_SENSOR_PLATFORM_SENSOR_H_
6 #define DEVICE_GENERIC_SENSOR_PLATFORM_SENSOR_H_ 6 #define DEVICE_GENERIC_SENSOR_PLATFORM_SENSOR_H_
7 7
8 #include <list> 8 #include <list>
9 #include <map> 9 #include <map>
10 10
11 #include "base/macros.h" 11 #include "base/macros.h"
12 #include "base/memory/ref_counted.h" 12 #include "base/memory/ref_counted.h"
13 #include "base/memory/weak_ptr.h" 13 #include "base/memory/weak_ptr.h"
14 #include "base/observer_list.h" 14 #include "base/observer_list.h"
15 #include "base/single_thread_task_runner.h"
15 #include "device/generic_sensor/generic_sensor_export.h" 16 #include "device/generic_sensor/generic_sensor_export.h"
16 #include "device/generic_sensor/public/cpp/sensor_reading.h" 17 #include "device/generic_sensor/public/cpp/sensor_reading.h"
17 #include "device/generic_sensor/public/interfaces/sensor.mojom.h" 18 #include "device/generic_sensor/public/interfaces/sensor.mojom.h"
18 #include "mojo/public/cpp/system/buffer.h" 19 #include "mojo/public/cpp/system/buffer.h"
19 20
20 namespace device { 21 namespace device {
21 22
22 class PlatformSensorProvider; 23 class PlatformSensorProvider;
23 class PlatformSensorConfiguration; 24 class PlatformSensorConfiguration;
24 25
(...skipping 72 matching lines...) Expand 10 before | Expand all | Expand 10 after
97 base::ObserverList<Client, true> clients_; 98 base::ObserverList<Client, true> clients_;
98 ConfigMap config_map_; 99 ConfigMap config_map_;
99 PlatformSensorProvider* provider_; 100 PlatformSensorProvider* provider_;
100 base::WeakPtrFactory<PlatformSensor> weak_factory_; 101 base::WeakPtrFactory<PlatformSensor> weak_factory_;
101 DISALLOW_COPY_AND_ASSIGN(PlatformSensor); 102 DISALLOW_COPY_AND_ASSIGN(PlatformSensor);
102 }; 103 };
103 104
104 } // namespace device 105 } // namespace device
105 106
106 #endif // DEVICE_GENERIC_SENSOR_PLATFORM_SENSOR_H_ 107 #endif // DEVICE_GENERIC_SENSOR_PLATFORM_SENSOR_H_
OLDNEW
« no previous file with comments | « components/leveldb/leveldb_service_impl.cc ('k') | device/generic_sensor/platform_sensor_reader_win.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698