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

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

Issue 2144623003: [sensors] Introduce Generic Sensor API interfaces (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Comments from Reilly Created 4 years, 4 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_SENSOR_SERVICE_H_
6 #define DEVICE_GENERIC_SENSOR_SENSOR_SERVICE_H_
7
8 #include "base/macros.h"
9 #include "base/memory/ref_counted.h"
10 #include "device/generic_sensor/public/interfaces/sensor_provider.mojom.h"
11 #include "device/generic_sensor/sensor_export.h"
12
13 namespace base {
14 class SingleThreadTaskRunner;
15 }
16
17 namespace device {
18
19 // The SensorService binds a request for the SensorProvider interface to
20 // an internal implementation of SensorProvider.
21 class SensorService {
Ken Rockot(use gerrit already) 2016/08/18 19:36:00 I don't think we need SensorService or this h/cc f
Mikhail 2016/08/19 09:29:56 Done.
22 public:
23 DEVICE_SENSOR_EXPORT static void BindRequest(
24 const scoped_refptr<base::SingleThreadTaskRunner>& task_runner,
25 mojo::InterfaceRequest<mojom::SensorProvider> request);
26
27 private:
28 DISALLOW_COPY_AND_ASSIGN(SensorService);
29 };
30
31 } // namespace device
32
33 #endif // DEVICE_GENERIC_SENSOR_SENSOR_SERVICE_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698