| OLD | NEW |
| 1 // Copyright (c) 2009 The Chromium Authors. All rights reserved. Use of this | 1 // Copyright (c) 2009 The Chromium Authors. All rights reserved. Use of this |
| 2 // source code is governed by a BSD-style license that can be found in the | 2 // source code is governed by a BSD-style license that can be found in the |
| 3 // LICENSE file. | 3 // LICENSE file. |
| 4 | 4 |
| 5 #ifndef CHROME_RENDERER_RENDERER_SANDBOX_SUPPORT_LINUX_H_ | 5 #ifndef CHROME_RENDERER_RENDERER_SANDBOX_SUPPORT_LINUX_H_ |
| 6 #define CHROME_RENDERER_RENDERER_SANDBOX_SUPPORT_LINUX_H_ | 6 #define CHROME_RENDERER_RENDERER_SANDBOX_SUPPORT_LINUX_H_ |
| 7 | 7 |
| 8 #include <stdint.h> | 8 #include <stdint.h> |
| 9 | 9 |
| 10 #include <string> | 10 #include <string> |
| 11 | 11 |
| 12 namespace WebKit { | 12 namespace WebKit { |
| 13 struct WebFontRenderStyle; | 13 struct WebFontRenderStyle; |
| 14 } | 14 } |
| 15 | 15 |
| 16 namespace renderer_sandbox_support { | 16 namespace renderer_sandbox_support { |
| 17 | 17 |
| 18 // Return a font family which provides glyphs for the Unicode code points | 18 // Return a font family which provides glyphs for the Unicode code points |
| 19 // specified by |utf16| | 19 // specified by |utf16| |
| 20 // utf16: a native-endian UTF16 string | 20 // utf16: a native-endian UTF16 string |
| 21 // num_utf16: the number of 16-bit words in |utf16| | 21 // num_utf16: the number of 16-bit words in |utf16| |
| 22 // | 22 // |
| 23 // Returns: the font family or an empty string if the request could not be | 23 // Returns: the font family or an empty string if the request could not be |
| 24 // satisfied. | 24 // satisfied. |
| 25 std::string getFontFamilyForCharacters(const uint16_t* utf16, size_t num_utf16); | 25 std::string getFontFamilyForCharacters(const uint16_t* utf16, size_t num_utf16); |
| 26 | 26 |
| 27 void getRenderStyleForStrike(const char* family, int sizeAndStyle, | 27 void getRenderStyleForStrike(const char* family, int sizeAndStyle, |
| 28 WebKit::WebFontRenderStyle* out); | 28 WebKit::WebFontRenderStyle* out); |
| 29 | 29 |
| 30 // Returns a file descriptor for a shared memory segment. |
| 31 int MakeSharedMemorySegmentViaIPC(size_t length); |
| 32 |
| 30 }; // namespace render_sandbox_support | 33 }; // namespace render_sandbox_support |
| 31 | 34 |
| 32 #endif // CHROME_RENDERER_RENDERER_SANDBOX_SUPPORT_LINUX_H_ | 35 #endif // CHROME_RENDERER_RENDERER_SANDBOX_SUPPORT_LINUX_H_ |
| OLD | NEW |