OLD | NEW |
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 #include "content/common/child_process_sandbox_support_impl_linux.h" | 5 #include "content/common/child_process_sandbox_support_impl_linux.h" |
6 | 6 |
7 #include <sys/stat.h> | 7 #include <sys/stat.h> |
8 | 8 |
9 #include "base/eintr_wrapper.h" | |
10 #include "base/memory/scoped_ptr.h" | 9 #include "base/memory/scoped_ptr.h" |
11 #include "base/pickle.h" | 10 #include "base/pickle.h" |
| 11 #include "base/posix/eintr_wrapper.h" |
12 #include "base/posix/unix_domain_socket.h" | 12 #include "base/posix/unix_domain_socket.h" |
13 #include "content/common/sandbox_linux.h" | 13 #include "content/common/sandbox_linux.h" |
14 #include "third_party/WebKit/Source/WebKit/chromium/public/platform/linux/WebFon
tFamily.h" | 14 #include "third_party/WebKit/Source/WebKit/chromium/public/platform/linux/WebFon
tFamily.h" |
15 #include "third_party/WebKit/Source/WebKit/chromium/public/linux/WebFontRenderSt
yle.h" | 15 #include "third_party/WebKit/Source/WebKit/chromium/public/linux/WebFontRenderSt
yle.h" |
16 | 16 |
17 namespace content { | 17 namespace content { |
18 | 18 |
19 void GetFontFamilyForCharacters(const uint16_t* utf16, | 19 void GetFontFamilyForCharacters(const uint16_t* utf16, |
20 size_t num_utf16, | 20 size_t num_utf16, |
21 const char* preferred_locale, | 21 const char* preferred_locale, |
(...skipping 148 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
170 | 170 |
171 *output_length = length; | 171 *output_length = length; |
172 n = HANDLE_EINTR(pread(fd, output, length, offset)); | 172 n = HANDLE_EINTR(pread(fd, output, length, offset)); |
173 if (n != static_cast<ssize_t>(length)) | 173 if (n != static_cast<ssize_t>(length)) |
174 return false; | 174 return false; |
175 | 175 |
176 return true; | 176 return true; |
177 } | 177 } |
178 | 178 |
179 } // namespace content | 179 } // namespace content |
OLD | NEW |