OLD | NEW |
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 CONTENT_RENDERER_SHARED_MEMORY_SEQLOCK_READER_H_ | 5 #ifndef CONTENT_RENDERER_SHARED_MEMORY_SEQLOCK_READER_H_ |
6 #define CONTENT_RENDERER_SHARED_MEMORY_SEQLOCK_READER_H_ | 6 #define CONTENT_RENDERER_SHARED_MEMORY_SEQLOCK_READER_H_ |
7 | 7 |
| 8 #include <stddef.h> |
| 9 |
8 #include "base/logging.h" | 10 #include "base/logging.h" |
| 11 #include "base/macros.h" |
9 #include "base/memory/scoped_ptr.h" | 12 #include "base/memory/scoped_ptr.h" |
10 #include "base/memory/shared_memory.h" | 13 #include "base/memory/shared_memory.h" |
11 #include "content/common/shared_memory_seqlock_buffer.h" | 14 #include "content/common/shared_memory_seqlock_buffer.h" |
12 | 15 |
13 namespace content { | 16 namespace content { |
14 namespace internal { | 17 namespace internal { |
15 | 18 |
16 class SharedMemorySeqLockReaderBase { | 19 class SharedMemorySeqLockReaderBase { |
17 protected: | 20 protected: |
18 SharedMemorySeqLockReaderBase(); | 21 SharedMemorySeqLockReaderBase(); |
(...skipping 42 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
61 private: | 64 private: |
62 SharedMemorySeqLockBuffer<Data>* buffer_; | 65 SharedMemorySeqLockBuffer<Data>* buffer_; |
63 scoped_ptr<Data> temp_buffer_; | 66 scoped_ptr<Data> temp_buffer_; |
64 | 67 |
65 DISALLOW_COPY_AND_ASSIGN(SharedMemorySeqLockReader); | 68 DISALLOW_COPY_AND_ASSIGN(SharedMemorySeqLockReader); |
66 }; | 69 }; |
67 | 70 |
68 } // namespace content | 71 } // namespace content |
69 | 72 |
70 #endif // CONTENT_RENDERER_SHARED_MEMORY_SEQLOCK_READER_H_ | 73 #endif // CONTENT_RENDERER_SHARED_MEMORY_SEQLOCK_READER_H_ |
OLD | NEW |