OLD | NEW |
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_PUBLIC_COMMON_CHILD_PROCESS_SANDBOX_SUPPORT_LINUX_H_ | 5 #ifndef CONTENT_PUBLIC_COMMON_CHILD_PROCESS_SANDBOX_SUPPORT_LINUX_H_ |
6 #define CONTENT_PUBLIC_COMMON_CHILD_PROCESS_SANDBOX_SUPPORT_LINUX_H_ | 6 #define CONTENT_PUBLIC_COMMON_CHILD_PROCESS_SANDBOX_SUPPORT_LINUX_H_ |
7 | 7 |
8 #include <stdint.h> | 8 #include <stdint.h> |
9 #include <string> | 9 #include <string> |
10 | 10 |
(...skipping 32 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
43 // offset: offset into the table or entire font where loading should start. | 43 // offset: offset into the table or entire font where loading should start. |
44 // The offset must be between 0 and 1 GB - 1. | 44 // The offset must be between 0 and 1 GB - 1. |
45 // output: a buffer of size output_length that gets the data. can be 0, in | 45 // output: a buffer of size output_length that gets the data. can be 0, in |
46 // which case output_length will be set to the required size in bytes. | 46 // which case output_length will be set to the required size in bytes. |
47 // output_length: size of output, if it's not 0. | 47 // output_length: size of output, if it's not 0. |
48 // | 48 // |
49 // returns: true on success. | 49 // returns: true on success. |
50 CONTENT_EXPORT bool GetFontTable(int fd, uint32_t table_tag, off_t offset, | 50 CONTENT_EXPORT bool GetFontTable(int fd, uint32_t table_tag, off_t offset, |
51 uint8_t* output, size_t* output_length); | 51 uint8_t* output, size_t* output_length); |
52 | 52 |
53 // Sends a zygote child "ping" message to browser process via socket |fd|. | |
54 // Returns true on success. | |
55 CONTENT_EXPORT bool SendZygoteChildPing(int fd); | |
56 | |
57 }; // namespace content | 53 }; // namespace content |
58 | 54 |
59 #endif // CONTENT_PUBLIC_COMMON_CHILD_PROCESS_SANDBOX_SUPPORT_LINUX_H_ | 55 #endif // CONTENT_PUBLIC_COMMON_CHILD_PROCESS_SANDBOX_SUPPORT_LINUX_H_ |
OLD | NEW |