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