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

Side by Side Diff: content/zygote/zygote_linux.cc

Issue 2389193004: Always use ChannelMojo for content child processes. (Closed)
Patch Set: Created 4 years, 2 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
« no previous file with comments | « content/utility/utility_thread_impl.cc ('k') | ipc/BUILD.gn » ('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/zygote/zygote_linux.h" 5 #include "content/zygote/zygote_linux.h"
6 6
7 #include <errno.h> 7 #include <errno.h>
8 #include <fcntl.h> 8 #include <fcntl.h>
9 #include <poll.h> 9 #include <poll.h>
10 #include <signal.h> 10 #include <signal.h>
(...skipping 25 matching lines...) Expand all
36 #include "content/common/sandbox_linux/sandbox_linux.h" 36 #include "content/common/sandbox_linux/sandbox_linux.h"
37 #include "content/common/set_process_title.h" 37 #include "content/common/set_process_title.h"
38 #include "content/common/zygote_commands_linux.h" 38 #include "content/common/zygote_commands_linux.h"
39 #include "content/public/common/content_descriptors.h" 39 #include "content/public/common/content_descriptors.h"
40 #include "content/public/common/mojo_channel_switches.h" 40 #include "content/public/common/mojo_channel_switches.h"
41 #include "content/public/common/result_codes.h" 41 #include "content/public/common/result_codes.h"
42 #include "content/public/common/sandbox_linux.h" 42 #include "content/public/common/sandbox_linux.h"
43 #include "content/public/common/send_zygote_child_ping_linux.h" 43 #include "content/public/common/send_zygote_child_ping_linux.h"
44 #include "content/public/common/zygote_fork_delegate_linux.h" 44 #include "content/public/common/zygote_fork_delegate_linux.h"
45 #include "ipc/ipc_channel.h" 45 #include "ipc/ipc_channel.h"
46 #include "ipc/ipc_switches.h"
47 #include "sandbox/linux/services/credentials.h" 46 #include "sandbox/linux/services/credentials.h"
48 #include "sandbox/linux/services/namespace_sandbox.h" 47 #include "sandbox/linux/services/namespace_sandbox.h"
49 48
50 // See https://chromium.googlesource.com/chromium/src/+/master/docs/linux_zygote .md 49 // See https://chromium.googlesource.com/chromium/src/+/master/docs/linux_zygote .md
51 50
52 namespace content { 51 namespace content {
53 52
54 namespace { 53 namespace {
55 54
56 // NOP function. See below where this handler is installed. 55 // NOP function. See below where this handler is installed.
(...skipping 610 matching lines...) Expand 10 before | Expand all | Expand 10 after
667 bool Zygote::HandleGetSandboxStatus(int fd, base::PickleIterator iter) { 666 bool Zygote::HandleGetSandboxStatus(int fd, base::PickleIterator iter) {
668 if (HANDLE_EINTR(write(fd, &sandbox_flags_, sizeof(sandbox_flags_))) != 667 if (HANDLE_EINTR(write(fd, &sandbox_flags_, sizeof(sandbox_flags_))) !=
669 sizeof(sandbox_flags_)) { 668 sizeof(sandbox_flags_)) {
670 PLOG(ERROR) << "write"; 669 PLOG(ERROR) << "write";
671 } 670 }
672 671
673 return false; 672 return false;
674 } 673 }
675 674
676 } // namespace content 675 } // namespace content
OLDNEW
« no previous file with comments | « content/utility/utility_thread_impl.cc ('k') | ipc/BUILD.gn » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698