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

Side by Side Diff: services/device/public/cpp/sensors/shared_memory_seqlock_reader.h

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 2013 The Chromium Authors. All rights reserved. 1 // Copyright 2013 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 DEVICE_SENSORS_PUBLIC_CPP_SHARED_MEMORY_SEQLOCK_READER_H_ 5 #ifndef SERVICES_DEVICE_PUBLIC_CPP_SENSORS_SHARED_MEMORY_SEQLOCK_READER_H_
6 #define DEVICE_SENSORS_PUBLIC_CPP_SHARED_MEMORY_SEQLOCK_READER_H_ 6 #define SERVICES_DEVICE_PUBLIC_CPP_SENSORS_SHARED_MEMORY_SEQLOCK_READER_H_
7 7
8 #include <stddef.h> 8 #include <stddef.h>
9 9
10 #include <memory> 10 #include <memory>
11 11
12 #include "base/macros.h" 12 #include "base/macros.h"
13 #include "base/memory/shared_memory.h" 13 #include "base/memory/shared_memory.h"
14 #include "device/base/synchronization/shared_memory_seqlock_buffer.h" 14 #include "device/base/synchronization/shared_memory_seqlock_buffer.h"
15 15
16 namespace device { 16 namespace device {
(...skipping 49 matching lines...) Expand 10 before | Expand all | Expand 10 after
66 66
67 private: 67 private:
68 device::SharedMemorySeqLockBuffer<Data>* buffer_; 68 device::SharedMemorySeqLockBuffer<Data>* buffer_;
69 std::unique_ptr<Data> temp_buffer_; 69 std::unique_ptr<Data> temp_buffer_;
70 70
71 DISALLOW_COPY_AND_ASSIGN(SharedMemorySeqLockReader); 71 DISALLOW_COPY_AND_ASSIGN(SharedMemorySeqLockReader);
72 }; 72 };
73 73
74 } // namespace device 74 } // namespace device
75 75
76 #endif // DEVICE_SENSORS_PUBLIC_CPP_SHARED_MEMORY_SEQLOCK_READER_H_ 76 #endif // SERVICES_DEVICE_PUBLIC_CPP_SENSORS_SHARED_MEMORY_SEQLOCK_READER_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698