Pin Chrome's shortcut to the Win10 Start menu on install and OS upgrade.
[chromium-blink-merge.git] / content / common / sandbox_win.h
blob338e1c4233a76fb520fd105275f58184f9242b68
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
3 // found in the LICENSE file.
5 #ifndef CONTENT_COMMON_SANDBOX_WIN_H_
6 #define CONTENT_COMMON_SANDBOX_WIN_H_
8 #include "content/common/content_export.h"
9 #include "sandbox/win/src/security_level.h"
11 namespace base {
12 class CommandLine;
15 namespace sandbox {
16 class BrokerServices;
17 class TargetPolicy;
18 class TargetServices;
21 namespace content {
23 // Wrapper around sandbox::TargetPolicy::SetJobLevel that checks if the sandbox
24 // should be let to run without a job object assigned.
25 void SetJobLevel(const base::CommandLine& cmd_line,
26 sandbox::JobLevel job_level,
27 uint32 ui_exceptions,
28 sandbox::TargetPolicy* policy);
30 // Closes handles that are opened at process creation and initialization.
31 void AddBaseHandleClosePolicy(sandbox::TargetPolicy* policy);
33 // Add AppContainer policy for |sid| on supported OS.
34 void AddAppContainerPolicy(sandbox::TargetPolicy* policy, const wchar_t* sid);
36 bool InitBrokerServices(sandbox::BrokerServices* broker_services);
38 bool InitTargetServices(sandbox::TargetServices* target_services);
40 } // namespace content
42 #endif // CONTENT_COMMON_SANDBOX_WIN_H_