| OLD | NEW |
| 1 // Copyright (c) 2011 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2011 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 #include "base/memory/shared_memory.h" | 5 #include "base/memory/shared_memory.h" |
| 6 | 6 |
| 7 #include <aclapi.h> | 7 #include <aclapi.h> |
| 8 #include <stddef.h> | 8 #include <stddef.h> |
| 9 #include <stdint.h> | 9 #include <stdint.h> |
| 10 | 10 |
| 11 #include <memory> |
| 12 |
| 11 #include "base/logging.h" | 13 #include "base/logging.h" |
| 12 #include "base/memory/scoped_ptr.h" | |
| 13 #include "base/rand_util.h" | 14 #include "base/rand_util.h" |
| 14 #include "base/strings/stringprintf.h" | 15 #include "base/strings/stringprintf.h" |
| 15 #include "base/strings/utf_string_conversions.h" | 16 #include "base/strings/utf_string_conversions.h" |
| 16 | 17 |
| 17 namespace { | 18 namespace { |
| 18 | 19 |
| 19 typedef enum _SECTION_INFORMATION_CLASS { | 20 typedef enum _SECTION_INFORMATION_CLASS { |
| 20 SectionBasicInformation, | 21 SectionBasicInformation, |
| 21 } SECTION_INFORMATION_CLASS; | 22 } SECTION_INFORMATION_CLASS; |
| 22 | 23 |
| (...skipping 316 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 339 ::CloseHandle(mapped_file_); | 340 ::CloseHandle(mapped_file_); |
| 340 mapped_file_ = NULL; | 341 mapped_file_ = NULL; |
| 341 } | 342 } |
| 342 } | 343 } |
| 343 | 344 |
| 344 SharedMemoryHandle SharedMemory::handle() const { | 345 SharedMemoryHandle SharedMemory::handle() const { |
| 345 return SharedMemoryHandle(mapped_file_, base::GetCurrentProcId()); | 346 return SharedMemoryHandle(mapped_file_, base::GetCurrentProcId()); |
| 346 } | 347 } |
| 347 | 348 |
| 348 } // namespace base | 349 } // namespace base |
| OLD | NEW |