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

Side by Side Diff: content/common/child_process_sandbox_support_impl_linux.h

Issue 8914026: Revert 114539 - Move content::MakeSharedMemorySegmentViaIPC into its own file (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src/
Patch Set: Created 9 years 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 | « chrome/nacl.gypi ('k') | content/common/child_process_sandbox_support_impl_linux.cc » ('j') | 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) 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_COMMON_CHILD_PROCESS_SANDBOX_SUPPORT_IMPL_LINUX_H_ 5 #ifndef CONTENT_COMMON_CHILD_PROCESS_SANDBOX_SUPPORT_IMPL_LINUX_H_
6 #define CONTENT_COMMON_CHILD_PROCESS_SANDBOX_SUPPORT_IMPL_LINUX_H_ 6 #define CONTENT_COMMON_CHILD_PROCESS_SANDBOX_SUPPORT_IMPL_LINUX_H_
7 #pragma once 7 #pragma once
8 8
9 #include "base/global_descriptors_posix.h"
10 #include "content/common/chrome_descriptors.h"
11 #include "content/public/common/child_process_sandbox_support_linux.h" 9 #include "content/public/common/child_process_sandbox_support_linux.h"
12 10
13 namespace WebKit { 11 namespace WebKit {
14 struct WebFontFamily; 12 struct WebFontFamily;
15 struct WebFontRenderStyle; 13 struct WebFontRenderStyle;
16 } 14 }
17 15
18 namespace content { 16 namespace content {
19 17
20 // 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
21 // specified by |utf16| 19 // specified by |utf16|
22 // utf16: a native-endian UTF16 string 20 // utf16: a native-endian UTF16 string
23 // num_utf16: the number of 16-bit words in |utf16| 21 // num_utf16: the number of 16-bit words in |utf16|
24 // preferred_locale: preferred locale identifier for the |utf16| 22 // preferred_locale: preferred locale identifier for the |utf16|
25 // 23 //
26 // Returns: a font family instance. 24 // Returns: a font family instance.
27 // The instance has an empty font name if the request could not be satisfied. 25 // The instance has an empty font name if the request could not be satisfied.
28 void GetFontFamilyForCharacters(const uint16_t* utf16, 26 void GetFontFamilyForCharacters(const uint16_t* utf16,
29 size_t num_utf16, 27 size_t num_utf16,
30 const char* preferred_locale, 28 const char* preferred_locale,
31 WebKit::WebFontFamily* family); 29 WebKit::WebFontFamily* family);
32 30
33 void GetRenderStyleForStrike(const char* family, int sizeAndStyle, 31 void GetRenderStyleForStrike(const char* family, int sizeAndStyle,
34 WebKit::WebFontRenderStyle* out); 32 WebKit::WebFontRenderStyle* out);
35 33
36 inline int GetSandboxFD() {
37 return kSandboxIPCChannel + base::GlobalDescriptors::kBaseDescriptor;
38 }
39
40 }; // namespace content 34 }; // namespace content
41 35
42 #endif // CONTENT_COMMON_CHILD_PROCESS_SANDBOX_SUPPORT_IMPL_LINUX_H_ 36 #endif // CONTENT_COMMON_CHILD_PROCESS_SANDBOX_SUPPORT_IMPL_LINUX_H_
OLDNEW
« no previous file with comments | « chrome/nacl.gypi ('k') | content/common/child_process_sandbox_support_impl_linux.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698