| OLD | NEW |
| 1 // Copyright 2015 The Chromium Authors. All rights reserved. | 1 // Copyright 2015 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 "device/sensors/data_fetcher_shared_memory.h" | 5 #include "services/device/sensors/data_fetcher_shared_memory.h" |
| 6 | 6 |
| 7 #include "device/sensors/sensor_manager_chromeos.h" | 7 #include "services/device/sensors/sensor_manager_chromeos.h" |
| 8 | 8 |
| 9 namespace device { | 9 namespace device { |
| 10 | 10 |
| 11 DataFetcherSharedMemory::DataFetcherSharedMemory() {} | 11 DataFetcherSharedMemory::DataFetcherSharedMemory() {} |
| 12 | 12 |
| 13 DataFetcherSharedMemory::~DataFetcherSharedMemory() {} | 13 DataFetcherSharedMemory::~DataFetcherSharedMemory() {} |
| 14 | 14 |
| 15 bool DataFetcherSharedMemory::Start(ConsumerType consumer_type, void* buffer) { | 15 bool DataFetcherSharedMemory::Start(ConsumerType consumer_type, void* buffer) { |
| 16 DCHECK(buffer); | 16 DCHECK(buffer); |
| 17 if (!sensor_manager_) | 17 if (!sensor_manager_) |
| (...skipping 45 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 63 return true; | 63 return true; |
| 64 case CONSUMER_TYPE_LIGHT: | 64 case CONSUMER_TYPE_LIGHT: |
| 65 NOTIMPLEMENTED(); | 65 NOTIMPLEMENTED(); |
| 66 return false; | 66 return false; |
| 67 } | 67 } |
| 68 NOTREACHED(); | 68 NOTREACHED(); |
| 69 return false; | 69 return false; |
| 70 } | 70 } |
| 71 | 71 |
| 72 } // namespace device | 72 } // namespace device |
| OLD | NEW |