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

Side by Side Diff: services/device/sensors/data_fetcher_shared_memory_android.cc

Issue 2819273006: Move //device/sensor impl to be part of the internal implemenation of the Device Service. (Closed)
Patch Set: Move //device/sensor impl to be part of the internal implemenation of the Device Service Created 3 years, 8 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 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 "device/sensors/data_fetcher_shared_memory.h" 5 #include "services/device/sensors/data_fetcher_shared_memory.h"
6 6
7 #include "base/logging.h" 7 #include "base/logging.h"
8 #include "device/sensors/public/cpp/device_light_hardware_buffer.h" 8 #include "services/device/public/cpp/sensors/device_light_hardware_buffer.h"
9 #include "device/sensors/public/cpp/device_motion_hardware_buffer.h" 9 #include "services/device/public/cpp/sensors/device_motion_hardware_buffer.h"
10 #include "device/sensors/public/cpp/device_orientation_hardware_buffer.h" 10 #include "services/device/public/cpp/sensors/device_orientation_hardware_buffer. h"
11 #include "device/sensors/sensor_manager_android.h" 11 #include "services/device/sensors/sensor_manager_android.h"
12 12
13 namespace device { 13 namespace device {
14 14
15 DataFetcherSharedMemory::DataFetcherSharedMemory() {} 15 DataFetcherSharedMemory::DataFetcherSharedMemory() {}
16 16
17 DataFetcherSharedMemory::~DataFetcherSharedMemory() {} 17 DataFetcherSharedMemory::~DataFetcherSharedMemory() {}
18 18
19 bool DataFetcherSharedMemory::Start(ConsumerType consumer_type, void* buffer) { 19 bool DataFetcherSharedMemory::Start(ConsumerType consumer_type, void* buffer) {
20 DCHECK(buffer); 20 DCHECK(buffer);
21 21
(...skipping 41 matching lines...) Expand 10 before | Expand all | Expand 10 after
63 } 63 }
64 return false; 64 return false;
65 } 65 }
66 66
67 void DataFetcherSharedMemory::Shutdown() { 67 void DataFetcherSharedMemory::Shutdown() {
68 DataFetcherSharedMemoryBase::Shutdown(); 68 DataFetcherSharedMemoryBase::Shutdown();
69 SensorManagerAndroid::GetInstance()->Shutdown(); 69 SensorManagerAndroid::GetInstance()->Shutdown();
70 } 70 }
71 71
72 } // namespace device 72 } // namespace device
OLDNEW
« no previous file with comments | « services/device/sensors/data_fetcher_shared_memory.h ('k') | services/device/sensors/data_fetcher_shared_memory_base.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698