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

Side by Side Diff: services/device/generic_sensor/platform_sensor_win.h

Issue 2865263002: Move //device/generic_sensor to be part of the internal implementation of the Device Service. (Closed)
Patch Set: code rebase Created 3 years, 7 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_WIN_H_ 5 #ifndef SERVICES_DEVICE_GENERIC_SENSOR_PLATFORM_SENSOR_WIN_H_
6 #define DEVICE_GENERIC_SENSOR_PLATFORM_SENSOR_WIN_H_ 6 #define SERVICES_DEVICE_GENERIC_SENSOR_PLATFORM_SENSOR_WIN_H_
7 7
8 #include "base/memory/weak_ptr.h" 8 #include "base/memory/weak_ptr.h"
9 #include "device/generic_sensor/platform_sensor.h" 9 #include "services/device/generic_sensor/platform_sensor.h"
10 #include "device/generic_sensor/platform_sensor_reader_win.h" 10 #include "services/device/generic_sensor/platform_sensor_reader_win.h"
11 11
12 namespace base { 12 namespace base {
13 class SingleThreadTaskRunner; 13 class SingleThreadTaskRunner;
14 } 14 }
15 15
16 namespace device { 16 namespace device {
17 17
18 // Implementation of PlatformSensor interface for Windows platform. Instance 18 // Implementation of PlatformSensor interface for Windows platform. Instance
19 // of PlatformSensorWin is bound to IPC thread where PlatformSensorProvider is 19 // of PlatformSensorWin is bound to IPC thread where PlatformSensorProvider is
20 // running and communication with Windows platform sensor is done through 20 // running and communication with Windows platform sensor is done through
(...skipping 31 matching lines...) Expand 10 before | Expand all | Expand 10 after
52 private: 52 private:
53 scoped_refptr<base::SingleThreadTaskRunner> sensor_thread_runner_; 53 scoped_refptr<base::SingleThreadTaskRunner> sensor_thread_runner_;
54 PlatformSensorReaderWin* const sensor_reader_; 54 PlatformSensorReaderWin* const sensor_reader_;
55 base::WeakPtrFactory<PlatformSensorWin> weak_factory_; 55 base::WeakPtrFactory<PlatformSensorWin> weak_factory_;
56 56
57 DISALLOW_COPY_AND_ASSIGN(PlatformSensorWin); 57 DISALLOW_COPY_AND_ASSIGN(PlatformSensorWin);
58 }; 58 };
59 59
60 } // namespace device 60 } // namespace device
61 61
62 #endif // DEVICE_GENERIC_SENSOR_PLATFORM_SENSOR_WIN_H_ 62 #endif // SERVICES_DEVICE_GENERIC_SENSOR_PLATFORM_SENSOR_WIN_H_
OLDNEW
« no previous file with comments | « services/device/generic_sensor/platform_sensor_reader_win.cc ('k') | services/device/generic_sensor/platform_sensor_win.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698