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

Side by Side Diff: sandbox/win/src/target_process.cc

Issue 1837483003: Move base::FreeDeleter into its own header. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 years, 9 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) 2012 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2012 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 "sandbox/win/src/target_process.h" 5 #include "sandbox/win/src/target_process.h"
6 6
7 #include <stddef.h> 7 #include <stddef.h>
8 #include <stdint.h> 8 #include <stdint.h>
9
9 #include <utility> 10 #include <utility>
10 11
11 #include "base/macros.h" 12 #include "base/macros.h"
13 #include "base/memory/free_deleter.h"
12 #include "base/memory/scoped_ptr.h" 14 #include "base/memory/scoped_ptr.h"
13 #include "base/win/pe_image.h" 15 #include "base/win/pe_image.h"
14 #include "base/win/startup_information.h" 16 #include "base/win/startup_information.h"
15 #include "base/win/windows_version.h" 17 #include "base/win/windows_version.h"
16 #include "sandbox/win/src/crosscall_client.h" 18 #include "sandbox/win/src/crosscall_client.h"
17 #include "sandbox/win/src/crosscall_server.h" 19 #include "sandbox/win/src/crosscall_server.h"
18 #include "sandbox/win/src/policy_low_level.h" 20 #include "sandbox/win/src/policy_low_level.h"
19 #include "sandbox/win/src/sandbox_types.h" 21 #include "sandbox/win/src/sandbox_types.h"
20 #include "sandbox/win/src/sharedmem_ipc_server.h" 22 #include "sandbox/win/src/sharedmem_ipc_server.h"
21 #include "sandbox/win/src/win_utils.h" 23 #include "sandbox/win/src/win_utils.h"
(...skipping 338 matching lines...) Expand 10 before | Expand all | Expand 10 after
360 new TargetProcess(base::win::ScopedHandle(), base::win::ScopedHandle(), 362 new TargetProcess(base::win::ScopedHandle(), base::win::ScopedHandle(),
361 base::win::ScopedHandle(), NULL, NULL); 363 base::win::ScopedHandle(), NULL, NULL);
362 PROCESS_INFORMATION process_info = {}; 364 PROCESS_INFORMATION process_info = {};
363 process_info.hProcess = process; 365 process_info.hProcess = process;
364 target->sandbox_process_info_.Set(process_info); 366 target->sandbox_process_info_.Set(process_info);
365 target->base_address_ = base_address; 367 target->base_address_ = base_address;
366 return target; 368 return target;
367 } 369 }
368 370
369 } // namespace sandbox 371 } // namespace sandbox
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698