- add sources.
[platform/framework/web/crosswalk.git] / src / content / common / child_process_sandbox_support_impl_linux.h
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.
4
5 #ifndef CONTENT_COMMON_CHILD_PROCESS_SANDBOX_SUPPORT_IMPL_LINUX_H_
6 #define CONTENT_COMMON_CHILD_PROCESS_SANDBOX_SUPPORT_IMPL_LINUX_H_
7
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"
11
12 namespace WebKit {
13 struct WebFontFamily;
14 struct WebFontRenderStyle;
15 }
16
17 namespace content {
18
19 // Return a font family which provides glyphs for the Unicode code point
20 // specified by |character|
21 //   character: a UTF32 character
22 //   preferred_locale: preferred locale identifier for the |character|
23 //
24 // Returns: a font family instance.
25 // The instance has an empty font name if the request could not be satisfied.
26 void GetFontFamilyForCharacter(const int32_t character,
27                                const char* preferred_locale,
28                                WebKit::WebFontFamily* family);
29
30 void GetRenderStyleForStrike(const char* family, int sizeAndStyle,
31                              WebKit::WebFontRenderStyle* out);
32
33 inline int GetSandboxFD() {
34   return kSandboxIPCChannel + base::GlobalDescriptors::kBaseDescriptor;
35 }
36
37 };  // namespace content
38
39 #endif  // CONTENT_COMMON_CHILD_PROCESS_SANDBOX_SUPPORT_IMPL_LINUX_H_