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

Side by Side Diff: content/common/sandbox_policy.h

Issue 9838083: Add a sandbox API for broker handle duplication (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: Created 8 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 | Annotate | Revision Log
« no previous file with comments | « content/common/sandbox_init_win.cc ('k') | content/common/sandbox_policy.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) 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 CONTENT_COMMON_SANDBOX_POLICY_H_ 5 #ifndef CONTENT_COMMON_SANDBOX_POLICY_H_
6 #define CONTENT_COMMON_SANDBOX_POLICY_H_ 6 #define CONTENT_COMMON_SANDBOX_POLICY_H_
7 #pragma once 7 #pragma once
8 8
9 #include "base/process.h" 9 #include "base/process.h"
10 #include "content/common/content_export.h" 10 #include "content/common/content_export.h"
11 11
12 class CommandLine; 12 class CommandLine;
13 class FilePath; 13 class FilePath;
14 14
15 namespace sandbox { 15 namespace sandbox {
16 16
17 class BrokerServices; 17 class BrokerServices;
18 class TargetServices;
18 19
19 CONTENT_EXPORT void InitBrokerServices( 20 CONTENT_EXPORT bool InitBrokerServices(
20 sandbox::BrokerServices* broker_services); 21 sandbox::BrokerServices* broker_services);
21 22
23 CONTENT_EXPORT bool InitTargetServices(
24 sandbox::TargetServices* target_services);
25
26 CONTENT_EXPORT bool BrokerDuplicateHandle(HANDLE source_handle,
27 DWORD target_process_id,
28 HANDLE* target_handle,
29 DWORD desired_access,
30 DWORD options);
31
22 // Starts a sandboxed process with the given directory unsandboxed 32 // Starts a sandboxed process with the given directory unsandboxed
23 // and returns a handle to it. 33 // and returns a handle to it.
24 CONTENT_EXPORT base::ProcessHandle StartProcessWithAccess( 34 CONTENT_EXPORT base::ProcessHandle StartProcessWithAccess(
25 CommandLine* cmd_line, 35 CommandLine* cmd_line,
26 const FilePath& exposed_dir); 36 const FilePath& exposed_dir);
27 37
28 } // namespace sandbox 38 } // namespace sandbox
29 39
30 #endif // CONTENT_COMMON_SANDBOX_POLICY_H_ 40 #endif // CONTENT_COMMON_SANDBOX_POLICY_H_
OLDNEW
« no previous file with comments | « content/common/sandbox_init_win.cc ('k') | content/common/sandbox_policy.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698