| 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 "base/logging.h" | 11 #include "base/logging.h" |
| 12 #include "base/memory/scoped_ptr.h" | |
| 13 #include "base/rand_util.h" | 12 #include "base/rand_util.h" |
| 14 #include "base/strings/stringprintf.h" | 13 #include "base/strings/stringprintf.h" |
| 15 #include "base/strings/utf_string_conversions.h" | 14 #include "base/strings/utf_string_conversions.h" |
| 16 | 15 |
| 17 namespace { | 16 namespace { |
| 18 | 17 |
| 19 typedef enum _SECTION_INFORMATION_CLASS { | 18 typedef enum _SECTION_INFORMATION_CLASS { |
| 20 SectionBasicInformation, | 19 SectionBasicInformation, |
| 21 } SECTION_INFORMATION_CLASS; | 20 } SECTION_INFORMATION_CLASS; |
| 22 | 21 |
| (...skipping 316 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 339 ::CloseHandle(mapped_file_); | 338 ::CloseHandle(mapped_file_); |
| 340 mapped_file_ = NULL; | 339 mapped_file_ = NULL; |
| 341 } | 340 } |
| 342 } | 341 } |
| 343 | 342 |
| 344 SharedMemoryHandle SharedMemory::handle() const { | 343 SharedMemoryHandle SharedMemory::handle() const { |
| 345 return SharedMemoryHandle(mapped_file_, base::GetCurrentProcId()); | 344 return SharedMemoryHandle(mapped_file_, base::GetCurrentProcId()); |
| 346 } | 345 } |
| 347 | 346 |
| 348 } // namespace base | 347 } // namespace base |
| OLD | NEW |