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

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

Issue 231763003: Support sideloaded fonts via command line option for blink layout_tests (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: . Created 6 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
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 <string>
9 #include <vector>
10
8 #include "sandbox/win/src/security_level.h" 11 #include "sandbox/win/src/security_level.h"
9 12
10 namespace base { 13 namespace base {
11 class CommandLine; 14 class CommandLine;
12 } 15 }
13 16
14 namespace sandbox { 17 namespace sandbox {
15 class BrokerServices; 18 class BrokerServices;
16 class TargetPolicy; 19 class TargetPolicy;
17 class TargetServices; 20 class TargetServices;
18 } 21 }
19 22
20 namespace content { 23 namespace content {
21 24
22 // Wrapper around sandbox::TargetPolicy::SetJobLevel that checks if the sandbox 25 // Wrapper around sandbox::TargetPolicy::SetJobLevel that checks if the sandbox
23 // should be let to run without a job object assigned. 26 // should be let to run without a job object assigned.
24 void SetJobLevel(const base::CommandLine& cmd_line, 27 void SetJobLevel(const base::CommandLine& cmd_line,
25 sandbox::JobLevel job_level, 28 sandbox::JobLevel job_level,
26 uint32 ui_exceptions, 29 uint32 ui_exceptions,
27 sandbox::TargetPolicy* policy); 30 sandbox::TargetPolicy* policy);
28 31
29 // Closes handles that are opened at process creation and initialization. 32 // Closes handles that are opened at process creation and initialization.
30 void AddBaseHandleClosePolicy(sandbox::TargetPolicy* policy); 33 void AddBaseHandleClosePolicy(sandbox::TargetPolicy* policy);
31 34
32 bool InitBrokerServices(sandbox::BrokerServices* broker_services); 35 bool InitBrokerServices(sandbox::BrokerServices* broker_services);
33 36
34 bool InitTargetServices(sandbox::TargetServices* target_services); 37 bool InitTargetServices(sandbox::TargetServices* target_services);
35 38
36 bool ShouldUseDirectWrite(); 39 bool ShouldUseDirectWrite();
40 bool GetSideloadFontFiles(std::vector<std::string>* files);
jam 2014/04/14 05:40:02 nit: please add documentation for both of these me
scottmg 2014/04/14 15:48:58 Done.
37 41
38 } // namespace content 42 } // namespace content
39 43
40 #endif // CONTENT_COMMON_SANDBOX_WIN_H_ 44 #endif // CONTENT_COMMON_SANDBOX_WIN_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698