| Index: device/core/one_writer_seqlock.h
|
| diff --git a/content/common/one_writer_seqlock.h b/device/core/one_writer_seqlock.h
|
| similarity index 85%
|
| rename from content/common/one_writer_seqlock.h
|
| rename to device/core/one_writer_seqlock.h
|
| index e301e848d5c86c5920b354e7539ef393a1b88050..52b68c6ed86584bb176b50ed1bdca8907cf6178f 100644
|
| --- a/content/common/one_writer_seqlock.h
|
| +++ b/device/core/one_writer_seqlock.h
|
| @@ -2,15 +2,15 @@
|
| // Use of this source code is governed by a BSD-style license that can be
|
| // found in the LICENSE file.
|
|
|
| -#ifndef CONTENT_COMMON_ONE_WRITER_SEQLOCK_H_
|
| -#define CONTENT_COMMON_ONE_WRITER_SEQLOCK_H_
|
| +#ifndef DEVICE_CORE_ONE_WRITER_SEQLOCK_H_
|
| +#define DEVICE_CORE_ONE_WRITER_SEQLOCK_H_
|
|
|
| #include "base/atomicops.h"
|
| #include "base/macros.h"
|
| #include "base/threading/platform_thread.h"
|
| -#include "content/common/content_export.h"
|
| +#include "device/core/device_core_export.h"
|
|
|
| -namespace content {
|
| +namespace device {
|
|
|
| // This SeqLock handles only *one* writer and multiple readers. It may be
|
| // suitable for low-contention with relatively infrequent writes, and many
|
| @@ -29,7 +29,7 @@ namespace content {
|
| // garbage, or indices could be out of range. Probably the only suitable thing
|
| // to do during the read loop is to make a copy of the data, and operate on it
|
| // only after the read was found to be consistent.
|
| -class CONTENT_EXPORT OneWriterSeqLock {
|
| +class DEVICE_CORE_EXPORT OneWriterSeqLock {
|
| public:
|
| OneWriterSeqLock();
|
| base::subtle::Atomic32 ReadBegin();
|
| @@ -42,6 +42,6 @@ class CONTENT_EXPORT OneWriterSeqLock {
|
| DISALLOW_COPY_AND_ASSIGN(OneWriterSeqLock);
|
| };
|
|
|
| -} // namespace content
|
| +} // namespace device
|
|
|
| -#endif // CONTENT_COMMON_ONE_WRITER_SEQLOCK_H_
|
| +#endif // DEVICE_CORE_ONE_WRITER_SEQLOCK_H_
|
|
|