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

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: Remove redundant base:: prefix 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
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 <memory>
Nico 2016/04/04 17:14:56 unused?
dcheng 2016/04/04 17:43:38 Done.
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
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
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698