Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(9)

Side by Side Diff: content/public/common/common_sandbox_support_linux.h

Issue 2679323006: Remove content/browser dependency on WebFontRenderStyle. (Closed)
Patch Set: merge Created 3 years, 10 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
(Empty)
1 // Copyright 2017 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_PUBLIC_COMMON_PROCESS_SANDBOX_SUPPORT_LINUX_H_
6 #define CONTENT_PUBLIC_COMMON_PROCESS_SANDBOX_SUPPORT_LINUX_H_
7
8 #include <stddef.h>
9 #include <stdint.h>
10 #include <string>
11
12 #include "content/common/content_export.h"
13
14 namespace content {
15
16 // GetFontTable loads a specified font table from an open SFNT file.
17 // fd: a file descriptor to the SFNT file. The position doesn't matter.
18 // table_tag: the table tag in *big-endian* format, or 0 for the entire font.
19 // offset: offset into the table or entire font where loading should start.
20 // The offset must be between 0 and 1 GB - 1.
21 // output: a buffer of size output_length that gets the data. can be 0, in
22 // which case output_length will be set to the required size in bytes.
23 // output_length: size of output, if it's not 0.
24 //
25 // returns: true on success.
26 CONTENT_EXPORT bool GetFontTable(int fd,
27 uint32_t table_tag,
28 off_t offset,
29 uint8_t* output,
30 size_t* output_length);
31
32 }; // namespace content
33
34 #endif // CONTENT_PUBLIC_COMMON_PROCESS_SANDBOX_SUPPORT_LINUX_H_
OLDNEW
« no previous file with comments | « content/public/common/child_process_sandbox_support_linux.h ('k') | content/renderer/renderer_blink_platform_impl.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698