Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(3)

Side by Side Diff: base/memory/shared_memory_win.cc

Issue 1852433005: Convert //base to use std::unique_ptr (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: rebase after r384946 Created 4 years, 8 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
« no previous file with comments | « base/memory/shared_memory_unittest.cc ('k') | base/memory/shared_memory_win_unittest.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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
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
OLDNEW
« no previous file with comments | « base/memory/shared_memory_unittest.cc ('k') | base/memory/shared_memory_win_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698