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

Side by Side Diff: chrome/renderer/renderer_sandbox_support_linux.h

Issue 669055: Add support for running the NaCl plugin in the Linux SUID sandbox (Closed)
Patch Set: Removed tab char; removed change to test (which assumed the NaCl-side change) Created 10 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
OLDNEW
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_
OLDNEW
« no previous file with comments | « chrome/common/sandbox_methods_linux.h ('k') | chrome/renderer/renderer_sandbox_support_linux.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698