Chromium Code Reviews| Index: base/memory/shared_memory.h |
| diff --git a/base/memory/shared_memory.h b/base/memory/shared_memory.h |
| index 0ec9ca7abf073d954abe8400db1cf78ab5e3cfa6..baaeb3be7c31af6149d9f39a3b5e089ea6409f64 100644 |
| --- a/base/memory/shared_memory.h |
| +++ b/base/memory/shared_memory.h |
| @@ -24,6 +24,10 @@ |
| #include "base/files/scoped_file.h" |
| #endif |
| +#if defined(OS_WIN) |
| +#include "base/win/scoped_handle.h" |
| +#endif |
| + |
| namespace base { |
| class FilePath; |
| @@ -263,7 +267,7 @@ class BASE_EXPORT SharedMemory { |
| // before being mapped. |
| bool external_section_; |
| std::wstring name_; |
| - HANDLE mapped_file_; |
| + win::ScopedHandle mapped_file_; |
|
Lei Zhang
2016/06/29 18:47:15
nit: extra space to keep the variable names lined
stanisc
2016/06/29 21:29:06
Done.
|
| #elif defined(OS_MACOSX) && !defined(OS_IOS) |
| // The OS primitive that backs the shared memory region. |
| SharedMemoryHandle shm_; |