OLD | NEW |
1 // Copyright (c) 2011 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2011 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_PULIC_COMMON_CHILD_PROCESS_SANDBOX_SUPPORT_LINUX_H_ | 5 #ifndef CONTENT_PULIC_COMMON_CHILD_PROCESS_SANDBOX_SUPPORT_LINUX_H_ |
6 #define CONTENT_PULIC_COMMON_CHILD_PROCESS_SANDBOX_SUPPORT_LINUX_H_ | 6 #define CONTENT_PULIC_COMMON_CHILD_PROCESS_SANDBOX_SUPPORT_LINUX_H_ |
7 #pragma once | |
8 | 7 |
9 #include <stdint.h> | 8 #include <stdint.h> |
10 #include <string> | 9 #include <string> |
11 | 10 |
12 #include "content/common/content_export.h" | 11 #include "content/common/content_export.h" |
13 | 12 |
14 namespace content { | 13 namespace content { |
15 | 14 |
16 // Returns a file descriptor for a shared memory segment. The | 15 // Returns a file descriptor for a shared memory segment. The |
17 // executable flag indicates that the caller intends to use mprotect | 16 // executable flag indicates that the caller intends to use mprotect |
(...skipping 19 matching lines...) Expand all Loading... |
37 // which case output_length will be set to the required size in bytes. | 36 // which case output_length will be set to the required size in bytes. |
38 // output_length: size of output, if it's not 0. | 37 // output_length: size of output, if it's not 0. |
39 // | 38 // |
40 // returns: true on success. | 39 // returns: true on success. |
41 CONTENT_EXPORT bool GetFontTable(int fd, uint32_t table, uint8_t* output, | 40 CONTENT_EXPORT bool GetFontTable(int fd, uint32_t table, uint8_t* output, |
42 size_t* output_length); | 41 size_t* output_length); |
43 | 42 |
44 }; // namespace content | 43 }; // namespace content |
45 | 44 |
46 #endif // CONTENT_PULIC_COMMON_CHILD_PROCESS_SANDBOX_SUPPORT_LINUX_H_ | 45 #endif // CONTENT_PULIC_COMMON_CHILD_PROCESS_SANDBOX_SUPPORT_LINUX_H_ |
OLD | NEW |