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

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

Issue 12433021: Modify content::GetFontTable so clients can control what is read. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 7 years, 9 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 | Annotate | Revision Log
« no previous file with comments | « content/common/child_process_sandbox_support_impl_linux.cc ('k') | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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_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 7
8 #include <stdint.h> 8 #include <stdint.h>
9 #include <string> 9 #include <string>
10 10
(...skipping 17 matching lines...) Expand all
28 // render_sandbox_host_linux.cc for more information. 28 // render_sandbox_host_linux.cc for more information.
29 CONTENT_EXPORT int MatchFontWithFallback(const std::string& face, bool bold, 29 CONTENT_EXPORT int MatchFontWithFallback(const std::string& face, bool bold,
30 bool italic, int charset); 30 bool italic, int charset);
31 31
32 // GetFontTable loads a specified font table from an open SFNT file. 32 // GetFontTable loads a specified font table from an open SFNT file.
33 // fd: a file descriptor to the SFNT file. The position doesn't matter. 33 // fd: a file descriptor to the SFNT file. The position doesn't matter.
34 // table: the table in *big-endian* format, or 0 for the whole font file. 34 // table: the table in *big-endian* format, or 0 for the whole font file.
35 // output: a buffer of size output_length that gets the data. can be 0, in 35 // output: a buffer of size output_length that gets the data. can be 0, in
36 // 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.
37 // output_length: size of output, if it's not 0. 37 // output_length: size of output, if it's not 0.
38 // offset: offset into the font or table where loading should start.
38 // 39 //
39 // returns: true on success. 40 // returns: true on success.
40 CONTENT_EXPORT bool GetFontTable(int fd, uint32_t table, uint8_t* output, 41 CONTENT_EXPORT bool GetFontTable(int fd, uint32_t table, uint8_t* output,
41 size_t* output_length); 42 size_t* output_length, size_t offset);
brettw 2013/03/07 23:10:26 I think this would make more sense after the "tabl
bbudge 2013/03/07 23:50:57 Done.
42 43
43 }; // namespace content 44 }; // namespace content
44 45
45 #endif // CONTENT_PULIC_COMMON_CHILD_PROCESS_SANDBOX_SUPPORT_LINUX_H_ 46 #endif // CONTENT_PULIC_COMMON_CHILD_PROCESS_SANDBOX_SUPPORT_LINUX_H_
OLDNEW
« no previous file with comments | « content/common/child_process_sandbox_support_impl_linux.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698