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

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

Issue 169193002: Convert scoped_ptr_malloc -> scoped_ptr, part 2. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: rebased Created 6 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 | Annotate | Revision Log
« no previous file with comments | « sandbox/win/src/process_thread_policy.cc ('k') | sandbox/win/src/target_process.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) 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 #ifndef SANDBOX_WIN_SRC_TARGET_PROCESS_H_ 5 #ifndef SANDBOX_WIN_SRC_TARGET_PROCESS_H_
6 #define SANDBOX_WIN_SRC_TARGET_PROCESS_H_ 6 #define SANDBOX_WIN_SRC_TARGET_PROCESS_H_
7 7
8 #include <windows.h> 8 #include <windows.h>
9 9
10 #include "base/basictypes.h" 10 #include "base/basictypes.h"
(...skipping 95 matching lines...) Expand 10 before | Expand all | Expand 10 after
106 base::win::ScopedHandle shared_section_; 106 base::win::ScopedHandle shared_section_;
107 // Job object containing the target process. 107 // Job object containing the target process.
108 HANDLE job_; 108 HANDLE job_;
109 // Reference to the IPC subsystem. 109 // Reference to the IPC subsystem.
110 scoped_ptr<SharedMemIPCServer> ipc_server_; 110 scoped_ptr<SharedMemIPCServer> ipc_server_;
111 // Provides the threads used by the IPC. This class does not own this pointer. 111 // Provides the threads used by the IPC. This class does not own this pointer.
112 ThreadProvider* thread_pool_; 112 ThreadProvider* thread_pool_;
113 // Base address of the main executable 113 // Base address of the main executable
114 void* base_address_; 114 void* base_address_;
115 // Full name of the target executable. 115 // Full name of the target executable.
116 scoped_ptr_malloc<wchar_t> exe_name_; 116 scoped_ptr<wchar_t, base::FreeDeleter> exe_name_;
117 117
118 // Function used for testing. 118 // Function used for testing.
119 friend TargetProcess* MakeTestTargetProcess(HANDLE process, 119 friend TargetProcess* MakeTestTargetProcess(HANDLE process,
120 HMODULE base_address); 120 HMODULE base_address);
121 121
122 DISALLOW_IMPLICIT_CONSTRUCTORS(TargetProcess); 122 DISALLOW_IMPLICIT_CONSTRUCTORS(TargetProcess);
123 }; 123 };
124 124
125 // Creates a mock TargetProcess used for testing interceptions. 125 // Creates a mock TargetProcess used for testing interceptions.
126 // TODO(cpu): It seems that this method is not going to be used anymore. 126 // TODO(cpu): It seems that this method is not going to be used anymore.
127 TargetProcess* MakeTestTargetProcess(HANDLE process, HMODULE base_address); 127 TargetProcess* MakeTestTargetProcess(HANDLE process, HMODULE base_address);
128 128
129 129
130 } // namespace sandbox 130 } // namespace sandbox
131 131
132 #endif // SANDBOX_WIN_SRC_TARGET_PROCESS_H_ 132 #endif // SANDBOX_WIN_SRC_TARGET_PROCESS_H_
OLDNEW
« no previous file with comments | « sandbox/win/src/process_thread_policy.cc ('k') | sandbox/win/src/target_process.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698