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

Unified Diff: sandbox/src/sandbox.h

Issue 9959018: Use ScopedProcessInformation and other RAII types in sandbox. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 8 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 side-by-side diff with in-line comments
Download patch
Index: sandbox/src/sandbox.h
diff --git a/sandbox/src/sandbox.h b/sandbox/src/sandbox.h
index bbc4f77f6d9297211a70bfd5c3d0c2f673683903..3b5d451213f14d05844d3642572e491e3a62c418 100644
--- a/sandbox/src/sandbox.h
+++ b/sandbox/src/sandbox.h
@@ -25,6 +25,14 @@
#include "sandbox/src/sandbox_policy.h"
#include "sandbox/src/sandbox_types.h"
+namespace base {
+namespace win {
+
+class ScopedProcessInformation;
+
+} // namespace win
+} // namespace namespace
+
// sandbox: Google User-Land Application Sandbox
namespace sandbox {
@@ -69,14 +77,14 @@ class BrokerServices {
// policy: This is the pointer to the policy object for the sandbox to
// be created.
// target: returns the resulting target process information such as process
- // handle and PID just as if CreateProcess() had been called. The caller is
erikwright (departed) 2012/03/30 16:29:31 I think the parameter type change makes this self
- // responsible for closing the handles returned in this structure.
+ // handle and PID just as if CreateProcess() had been called.
// Returns:
// ALL_OK if successful. All other return values imply failure.
- virtual ResultCode SpawnTarget(const wchar_t* exe_path,
- const wchar_t* command_line,
- TargetPolicy* policy,
- PROCESS_INFORMATION* target) = 0;
+ virtual ResultCode SpawnTarget(
+ const wchar_t* exe_path,
+ const wchar_t* command_line,
+ TargetPolicy* policy,
+ base::win::ScopedProcessInformation* target) = 0;
// This call blocks (waits) for all the targets to terminate.
// Returns:

Powered by Google App Engine
This is Rietveld 408576698