cros: Don't check consume kiosk flag for enterprise managed device.
[chromium-blink-merge.git] / content / common / child_process_sandbox_support_impl_linux.h
blob20dc6c555d4e483d7fb9735a56c2322cb219ae56
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_CHILD_PROCESS_SANDBOX_SUPPORT_IMPL_LINUX_H_
6 #define CONTENT_COMMON_CHILD_PROCESS_SANDBOX_SUPPORT_IMPL_LINUX_H_
8 #include "base/posix/global_descriptors.h"
9 #include "content/public/common/child_process_sandbox_support_linux.h"
10 #include "content/public/common/content_descriptors.h"
12 namespace WebKit {
13 struct WebFontFamily;
14 struct WebFontRenderStyle;
17 namespace content {
19 // Return a font family which provides glyphs for the Unicode code points
20 // specified by |utf16|
21 // utf16: a native-endian UTF16 string
22 // num_utf16: the number of 16-bit words in |utf16|
23 // preferred_locale: preferred locale identifier for the |utf16|
25 // Returns: a font family instance.
26 // The instance has an empty font name if the request could not be satisfied.
27 void GetFontFamilyForCharacters(const uint16_t* utf16,
28 size_t num_utf16,
29 const char* preferred_locale,
30 WebKit::WebFontFamily* family);
32 void GetRenderStyleForStrike(const char* family, int sizeAndStyle,
33 WebKit::WebFontRenderStyle* out);
35 inline int GetSandboxFD() {
36 return kSandboxIPCChannel + base::GlobalDescriptors::kBaseDescriptor;
39 }; // namespace content
41 #endif // CONTENT_COMMON_CHILD_PROCESS_SANDBOX_SUPPORT_IMPL_LINUX_H_