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

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

Issue 15822010: Update refernces to Blink's Platform API (content) (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 7 years, 6 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/cc_messages.cc ('k') | content/common/database_util.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) 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/memory/scoped_ptr.h" 9 #include "base/memory/scoped_ptr.h"
10 #include "base/pickle.h" 10 #include "base/pickle.h"
11 #include "base/posix/eintr_wrapper.h" 11 #include "base/posix/eintr_wrapper.h"
12 #include "base/posix/unix_domain_socket_linux.h" 12 #include "base/posix/unix_domain_socket_linux.h"
13 #include "base/safe_numerics.h" 13 #include "base/safe_numerics.h"
14 #include "base/sys_byteorder.h" 14 #include "base/sys_byteorder.h"
15 #include "content/common/sandbox_linux.h" 15 #include "content/common/sandbox_linux.h"
16 #include "third_party/WebKit/Source/Platform/chromium/public/linux/WebFontFamily .h" 16 #include "third_party/WebKit/public/platform/linux/WebFontFamily.h"
17 #include "third_party/WebKit/Source/WebKit/chromium/public/linux/WebFontRenderSt yle.h" 17 #include "third_party/WebKit/Source/WebKit/chromium/public/linux/WebFontRenderSt yle.h"
18 18
19 namespace content { 19 namespace content {
20 20
21 void GetFontFamilyForCharacters(const uint16_t* utf16, 21 void GetFontFamilyForCharacters(const uint16_t* utf16,
22 size_t num_utf16, 22 size_t num_utf16,
23 const char* preferred_locale, 23 const char* preferred_locale,
24 WebKit::WebFontFamily* family) { 24 WebKit::WebFontFamily* family) {
25 Pickle request; 25 Pickle request;
26 request.WriteInt(LinuxSandbox::METHOD_GET_FONT_FAMILY_FOR_CHARS); 26 request.WriteInt(LinuxSandbox::METHOD_GET_FONT_FAMILY_FOR_CHARS);
(...skipping 140 matching lines...) Expand 10 before | Expand all | Expand 10 after
167 ssize_t n = HANDLE_EINTR(pread(fd, output, data_length, data_offset)); 167 ssize_t n = HANDLE_EINTR(pread(fd, output, data_length, data_offset));
168 if (n != base::checked_numeric_cast<ssize_t>(data_length)) 168 if (n != base::checked_numeric_cast<ssize_t>(data_length))
169 return false; 169 return false;
170 } 170 }
171 *output_length = data_length; 171 *output_length = data_length;
172 172
173 return true; 173 return true;
174 } 174 }
175 175
176 } // namespace content 176 } // namespace content
OLDNEW
« no previous file with comments | « content/common/cc_messages.cc ('k') | content/common/database_util.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698