| OLD | NEW |
| 1 // Copyright 2014 The Chromium Authors. All rights reserved. | 1 // Copyright 2014 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 CONTENT_RENDERER_DEVICE_SENSORS_DEVICE_SENSOR_EVENT_PUMP_H_ | 5 #ifndef CONTENT_RENDERER_DEVICE_SENSORS_DEVICE_SENSOR_EVENT_PUMP_H_ |
| 6 #define CONTENT_RENDERER_DEVICE_SENSORS_DEVICE_SENSOR_EVENT_PUMP_H_ | 6 #define CONTENT_RENDERER_DEVICE_SENSORS_DEVICE_SENSOR_EVENT_PUMP_H_ |
| 7 | 7 |
| 8 #include "base/macros.h" |
| 8 #include "base/memory/shared_memory.h" | 9 #include "base/memory/shared_memory.h" |
| 9 #include "base/time/time.h" | 10 #include "base/time/time.h" |
| 10 #include "base/timer/timer.h" | 11 #include "base/timer/timer.h" |
| 11 #include "content/public/renderer/platform_event_observer.h" | 12 #include "content/public/renderer/platform_event_observer.h" |
| 12 | 13 |
| 13 namespace content { | 14 namespace content { |
| 14 | 15 |
| 15 template <typename ListenerType> | 16 template <typename ListenerType> |
| 16 class CONTENT_EXPORT DeviceSensorEventPump | 17 class CONTENT_EXPORT DeviceSensorEventPump |
| 17 : NON_EXPORTED_BASE(public PlatformEventObserver<ListenerType>) { | 18 : NON_EXPORTED_BASE(public PlatformEventObserver<ListenerType>) { |
| (...skipping 75 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 93 int pump_delay_microseconds_; | 94 int pump_delay_microseconds_; |
| 94 PumpState state_; | 95 PumpState state_; |
| 95 base::RepeatingTimer timer_; | 96 base::RepeatingTimer timer_; |
| 96 | 97 |
| 97 DISALLOW_COPY_AND_ASSIGN(DeviceSensorEventPump); | 98 DISALLOW_COPY_AND_ASSIGN(DeviceSensorEventPump); |
| 98 }; | 99 }; |
| 99 | 100 |
| 100 } // namespace content | 101 } // namespace content |
| 101 | 102 |
| 102 #endif // CONTENT_RENDERER_DEVICE_SENSORS_DEVICE_SENSOR_EVENT_PUMP_H_ | 103 #endif // CONTENT_RENDERER_DEVICE_SENSORS_DEVICE_SENSOR_EVENT_PUMP_H_ |
| OLD | NEW |