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 #include "content/browser/device_sensors/data_fetcher_shared_memory_base.h" | 5 #include "content/browser/device_sensors/data_fetcher_shared_memory_base.h" |
6 | 6 |
| 7 #include <stddef.h> |
| 8 |
7 #include "base/bind.h" | 9 #include "base/bind.h" |
8 #include "base/location.h" | 10 #include "base/location.h" |
9 #include "base/logging.h" | 11 #include "base/logging.h" |
| 12 #include "base/macros.h" |
10 #include "base/single_thread_task_runner.h" | 13 #include "base/single_thread_task_runner.h" |
11 #include "base/stl_util.h" | 14 #include "base/stl_util.h" |
12 #include "base/threading/thread.h" | 15 #include "base/threading/thread.h" |
13 #include "base/timer/timer.h" | 16 #include "base/timer/timer.h" |
14 #include "content/common/device_sensors/device_light_hardware_buffer.h" | 17 #include "content/common/device_sensors/device_light_hardware_buffer.h" |
15 #include "content/common/device_sensors/device_motion_hardware_buffer.h" | 18 #include "content/common/device_sensors/device_motion_hardware_buffer.h" |
16 #include "content/common/device_sensors/device_orientation_hardware_buffer.h" | 19 #include "content/common/device_sensors/device_orientation_hardware_buffer.h" |
17 | 20 |
18 namespace content { | 21 namespace content { |
19 | 22 |
(...skipping 224 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
244 | 247 |
245 base::MessageLoop* DataFetcherSharedMemoryBase::GetPollingMessageLoop() const { | 248 base::MessageLoop* DataFetcherSharedMemoryBase::GetPollingMessageLoop() const { |
246 return polling_thread_ ? polling_thread_->message_loop() : nullptr; | 249 return polling_thread_ ? polling_thread_->message_loop() : nullptr; |
247 } | 250 } |
248 | 251 |
249 bool DataFetcherSharedMemoryBase::IsPollingTimerRunningForTesting() const { | 252 bool DataFetcherSharedMemoryBase::IsPollingTimerRunningForTesting() const { |
250 return polling_thread_ ? polling_thread_->IsTimerRunning() : false; | 253 return polling_thread_ ? polling_thread_->IsTimerRunning() : false; |
251 } | 254 } |
252 | 255 |
253 } // namespace content | 256 } // namespace content |
OLD | NEW |