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

Side by Side Diff: device/generic_sensor/linux/sensor_device_manager.h

Issue 2587883002: Fix ODR violations caused by mojoms being included in multiple components. (Closed)
Patch Set: Created 3 years, 12 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/BUILD.gn ('k') | device/generic_sensor/platform_sensor_provider_linux.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_LINUX_SENSOR_DEVICE_MANAGER_H_ 5 #ifndef DEVICE_GENERIC_SENSOR_LINUX_SENSOR_DEVICE_MANAGER_H_
6 #define DEVICE_GENERIC_SENSOR_LINUX_SENSOR_DEVICE_MANAGER_H_ 6 #define DEVICE_GENERIC_SENSOR_LINUX_SENSOR_DEVICE_MANAGER_H_
7 7
8 #include "base/scoped_observer.h" 8 #include "base/scoped_observer.h"
9 9
10 #include "device/base/device_monitor_linux.h" 10 #include "device/base/device_monitor_linux.h"
11 #include "device/generic_sensor/generic_sensor_export.h"
11 #include "device/generic_sensor/public/interfaces/sensor.mojom.h" 12 #include "device/generic_sensor/public/interfaces/sensor.mojom.h"
12 13
13 namespace device { 14 namespace device {
14 15
15 struct SensorInfoLinux; 16 struct SensorInfoLinux;
16 17
17 // This SensorDeviceManager uses LinuxDeviceMonitor to enumerate devices 18 // This SensorDeviceManager uses LinuxDeviceMonitor to enumerate devices
18 // and listen to "add/removed" events to notify |provider_| about 19 // and listen to "add/removed" events to notify |provider_| about
19 // added or removed iio devices. It has own cache to speed up an identification 20 // added or removed iio devices. It has own cache to speed up an identification
20 // process of removed devices. 21 // process of removed devices.
(...skipping 53 matching lines...) Expand 10 before | Expand all | Expand 10 after
74 75
75 // A task runner, which |delegate_| lives on. 76 // A task runner, which |delegate_| lives on.
76 scoped_refptr<base::SingleThreadTaskRunner> task_runner_; 77 scoped_refptr<base::SingleThreadTaskRunner> task_runner_;
77 78
78 DISALLOW_COPY_AND_ASSIGN(SensorDeviceManager); 79 DISALLOW_COPY_AND_ASSIGN(SensorDeviceManager);
79 }; 80 };
80 81
81 } // namespace device 82 } // namespace device
82 83
83 #endif // DEVICE_GENERIC_SENSOR_LINUX_SENSOR_DEVICE_MANAGER_H_ 84 #endif // DEVICE_GENERIC_SENSOR_LINUX_SENSOR_DEVICE_MANAGER_H_
OLDNEW
« no previous file with comments | « device/generic_sensor/BUILD.gn ('k') | device/generic_sensor/platform_sensor_provider_linux.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698