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

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

Issue 1185333003: Implement GetSandboxType() on all platforms and implement for all process types. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: do not call base class from chrome's contentbrowserclient Created 5 years, 6 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 #ifndef CONTENT_COMMON_SANDBOX_WIN_H_ 5 #ifndef CONTENT_COMMON_SANDBOX_WIN_H_
6 #define CONTENT_COMMON_SANDBOX_WIN_H_ 6 #define CONTENT_COMMON_SANDBOX_WIN_H_
7 7
8 #include "content/common/content_export.h" 8 #include "content/common/content_export.h"
9 #include "sandbox/win/src/security_level.h" 9 #include "sandbox/win/src/security_level.h"
10 10
(...skipping 12 matching lines...) Expand all
23 // Wrapper around sandbox::TargetPolicy::SetJobLevel that checks if the sandbox 23 // Wrapper around sandbox::TargetPolicy::SetJobLevel that checks if the sandbox
24 // should be let to run without a job object assigned. 24 // should be let to run without a job object assigned.
25 void SetJobLevel(const base::CommandLine& cmd_line, 25 void SetJobLevel(const base::CommandLine& cmd_line,
26 sandbox::JobLevel job_level, 26 sandbox::JobLevel job_level,
27 uint32 ui_exceptions, 27 uint32 ui_exceptions,
28 sandbox::TargetPolicy* policy); 28 sandbox::TargetPolicy* policy);
29 29
30 // Closes handles that are opened at process creation and initialization. 30 // Closes handles that are opened at process creation and initialization.
31 void AddBaseHandleClosePolicy(sandbox::TargetPolicy* policy); 31 void AddBaseHandleClosePolicy(sandbox::TargetPolicy* policy);
32 32
33 // Add App container policy for |sid| on supported OS.
nasko 2015/06/24 13:11:38 nit: standardize on "App container" capitalization
Will Harris 2015/06/24 15:17:20 Done.
34 void AddAppContainerPolicy(sandbox::TargetPolicy* policy, const wchar_t* sid);
35
33 bool InitBrokerServices(sandbox::BrokerServices* broker_services); 36 bool InitBrokerServices(sandbox::BrokerServices* broker_services);
34 37
35 bool InitTargetServices(sandbox::TargetServices* target_services); 38 bool InitTargetServices(sandbox::TargetServices* target_services);
36 39
37 } // namespace content 40 } // namespace content
38 41
39 #endif // CONTENT_COMMON_SANDBOX_WIN_H_ 42 #endif // CONTENT_COMMON_SANDBOX_WIN_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698