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

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

Issue 196413016: Move CommandLine to base namespace. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: 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 | « content/child/runtime_features.h ('k') | content/ppapi_plugin/ppapi_thread.h » ('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 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 "sandbox/win/src/security_level.h" 8 #include "sandbox/win/src/security_level.h"
9 9
10 namespace base {
10 class CommandLine; 11 class CommandLine;
12 }
11 13
12 namespace sandbox { 14 namespace sandbox {
13 class BrokerServices; 15 class BrokerServices;
14 class TargetPolicy; 16 class TargetPolicy;
15 class TargetServices; 17 class TargetServices;
16 } 18 }
17 19
18 namespace content { 20 namespace content {
19 21
20 // Wrapper around sandbox::TargetPolicy::SetJobLevel that checks if the sandbox 22 // Wrapper around sandbox::TargetPolicy::SetJobLevel that checks if the sandbox
21 // should be let to run without a job object assigned. 23 // should be let to run without a job object assigned.
22 void SetJobLevel(const CommandLine& cmd_line, 24 void SetJobLevel(const base::CommandLine& cmd_line,
23 sandbox::JobLevel job_level, 25 sandbox::JobLevel job_level,
24 uint32 ui_exceptions, 26 uint32 ui_exceptions,
25 sandbox::TargetPolicy* policy); 27 sandbox::TargetPolicy* policy);
26 28
27 // Closes handles that are opened at process creation and initialization. 29 // Closes handles that are opened at process creation and initialization.
28 void AddBaseHandleClosePolicy(sandbox::TargetPolicy* policy); 30 void AddBaseHandleClosePolicy(sandbox::TargetPolicy* policy);
29 31
30 bool InitBrokerServices(sandbox::BrokerServices* broker_services); 32 bool InitBrokerServices(sandbox::BrokerServices* broker_services);
31 33
32 bool InitTargetServices(sandbox::TargetServices* target_services); 34 bool InitTargetServices(sandbox::TargetServices* target_services);
33 35
34 } // namespace content 36 } // namespace content
35 37
36 #endif // CONTENT_COMMON_SANDBOX_WIN_H_ 38 #endif // CONTENT_COMMON_SANDBOX_WIN_H_
OLDNEW
« no previous file with comments | « content/child/runtime_features.h ('k') | content/ppapi_plugin/ppapi_thread.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698