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

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

Issue 2679323006: Remove content/browser dependency on WebFontRenderStyle. (Closed)
Patch Set: merge Created 3 years, 10 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
(Empty)
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
3 // found in the LICENSE file.
4
5 #include "content/common/child_process_sandbox_support_impl_linux.h"
6
7 #include <stddef.h>
8 #include <stdint.h>
9
10 #include "base/pickle.h"
11 #include "base/posix/unix_domain_socket_linux.h"
12 #include "content/common/sandbox_linux/sandbox_linux.h"
13
14 namespace content {
15
16 int MakeSharedMemorySegmentViaIPC(size_t length, bool executable) {
17 base::Pickle request;
18 request.WriteInt(LinuxSandbox::METHOD_MAKE_SHARED_MEMORY_SEGMENT);
19 request.WriteUInt32(length);
20 request.WriteBool(executable);
21 uint8_t reply_buf[10];
22 int result_fd;
23 ssize_t result = base::UnixDomainSocket::SendRecvMsg(
24 GetSandboxFD(), reply_buf, sizeof(reply_buf), &result_fd, request);
25 if (result == -1)
26 return -1;
27 return result_fd;
28 }
29
30 } // namespace content
OLDNEW
« no previous file with comments | « content/common/child_process_sandbox_support_impl_linux.cc ('k') | content/common/common_sandbox_support_linux.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698