| Index: base/metrics/persistent_memory_allocator.h
|
| diff --git a/base/metrics/persistent_memory_allocator.h b/base/metrics/persistent_memory_allocator.h
|
| index de3293b9590d133157ec6e903eb7387d9d42aa83..ab9dd9d5eff2ea66603dd92ece6edbfe5871d5de 100644
|
| --- a/base/metrics/persistent_memory_allocator.h
|
| +++ b/base/metrics/persistent_memory_allocator.h
|
| @@ -316,6 +316,11 @@ class BASE_EXPORT PersistentMemoryAllocator {
|
| GetBlockData(ref, type_id, count * sizeof(T))));
|
| }
|
|
|
| + // Get the corresponding reference for an object held in persistent memory.
|
| + // If the |memory| is not valid or the type does not match, a kReferenceNull
|
| + // result will be returned.
|
| + Reference GetAsReference(const void* memory, uint32_t type_id) const;
|
| +
|
| // Get the number of bytes allocated to a block. This is useful when storing
|
| // arrays in order to validate the ending boundary. The returned value will
|
| // include any padding added to achieve the required alignment and so could
|
|
|