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

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: guard for xp 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
« no previous file with comments | « no previous file | content/content_renderer.gypi » ('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 "content/common/content_export.h"
8 #include "sandbox/win/src/security_level.h" 9 #include "sandbox/win/src/security_level.h"
9 10
10 namespace base { 11 namespace base {
11 class CommandLine; 12 class CommandLine;
12 } 13 }
13 14
14 namespace sandbox { 15 namespace sandbox {
15 class BrokerServices; 16 class BrokerServices;
16 class TargetPolicy; 17 class TargetPolicy;
17 class TargetServices; 18 class TargetServices;
18 } 19 }
19 20
20 namespace content { 21 namespace content {
21 22
22 // Wrapper around sandbox::TargetPolicy::SetJobLevel that checks if the sandbox 23 // Wrapper around sandbox::TargetPolicy::SetJobLevel that checks if the sandbox
23 // should be let to run without a job object assigned. 24 // should be let to run without a job object assigned.
24 void SetJobLevel(const base::CommandLine& cmd_line, 25 void SetJobLevel(const base::CommandLine& cmd_line,
25 sandbox::JobLevel job_level, 26 sandbox::JobLevel job_level,
26 uint32 ui_exceptions, 27 uint32 ui_exceptions,
27 sandbox::TargetPolicy* policy); 28 sandbox::TargetPolicy* policy);
28 29
29 // Closes handles that are opened at process creation and initialization. 30 // Closes handles that are opened at process creation and initialization.
30 void AddBaseHandleClosePolicy(sandbox::TargetPolicy* policy); 31 void AddBaseHandleClosePolicy(sandbox::TargetPolicy* policy);
31 32
32 bool InitBrokerServices(sandbox::BrokerServices* broker_services); 33 bool InitBrokerServices(sandbox::BrokerServices* broker_services);
33 34
34 bool InitTargetServices(sandbox::TargetServices* target_services); 35 bool InitTargetServices(sandbox::TargetServices* target_services);
35 36
36 bool ShouldUseDirectWrite(); 37 // Returns whether DirectWrite font rendering should be used.
38 CONTENT_EXPORT bool ShouldUseDirectWrite();
37 39
38 } // namespace content 40 } // namespace content
39 41
40 #endif // CONTENT_COMMON_SANDBOX_WIN_H_ 42 #endif // CONTENT_COMMON_SANDBOX_WIN_H_
OLDNEW
« no previous file with comments | « no previous file | content/content_renderer.gypi » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698