| 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/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 14 matching lines...) Expand all Loading... |
| 25 #include "base/posix/eintr_wrapper.h" | 25 #include "base/posix/eintr_wrapper.h" |
| 26 #include "base/posix/global_descriptors.h" | 26 #include "base/posix/global_descriptors.h" |
| 27 #include "base/posix/unix_domain_socket_linux.h" | 27 #include "base/posix/unix_domain_socket_linux.h" |
| 28 #include "base/process/kill.h" | 28 #include "base/process/kill.h" |
| 29 #include "base/process/launch.h" | 29 #include "base/process/launch.h" |
| 30 #include "base/process/process.h" | 30 #include "base/process/process.h" |
| 31 #include "base/process/process_handle.h" | 31 #include "base/process/process_handle.h" |
| 32 #include "base/time/time.h" | 32 #include "base/time/time.h" |
| 33 #include "base/trace_event/trace_event.h" | 33 #include "base/trace_event/trace_event.h" |
| 34 #include "build/build_config.h" | 34 #include "build/build_config.h" |
| 35 #include "content/common/child_process_sandbox_support_impl_linux.h" | |
| 36 #include "content/common/sandbox_linux/sandbox_linux.h" | 35 #include "content/common/sandbox_linux/sandbox_linux.h" |
| 37 #include "content/common/set_process_title.h" | 36 #include "content/common/set_process_title.h" |
| 38 #include "content/common/zygote_commands_linux.h" | 37 #include "content/common/zygote_commands_linux.h" |
| 39 #include "content/public/common/content_descriptors.h" | 38 #include "content/public/common/content_descriptors.h" |
| 40 #include "content/public/common/mojo_channel_switches.h" | 39 #include "content/public/common/mojo_channel_switches.h" |
| 41 #include "content/public/common/result_codes.h" | 40 #include "content/public/common/result_codes.h" |
| 42 #include "content/public/common/sandbox_linux.h" | 41 #include "content/public/common/sandbox_linux.h" |
| 43 #include "content/public/common/send_zygote_child_ping_linux.h" | 42 #include "content/public/common/send_zygote_child_ping_linux.h" |
| 44 #include "content/public/common/zygote_fork_delegate_linux.h" | 43 #include "content/public/common/zygote_fork_delegate_linux.h" |
| 45 #include "ipc/ipc_channel.h" | 44 #include "ipc/ipc_channel.h" |
| (...skipping 617 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 663 bool Zygote::HandleGetSandboxStatus(int fd, base::PickleIterator iter) { | 662 bool Zygote::HandleGetSandboxStatus(int fd, base::PickleIterator iter) { |
| 664 if (HANDLE_EINTR(write(fd, &sandbox_flags_, sizeof(sandbox_flags_))) != | 663 if (HANDLE_EINTR(write(fd, &sandbox_flags_, sizeof(sandbox_flags_))) != |
| 665 sizeof(sandbox_flags_)) { | 664 sizeof(sandbox_flags_)) { |
| 666 PLOG(ERROR) << "write"; | 665 PLOG(ERROR) << "write"; |
| 667 } | 666 } |
| 668 | 667 |
| 669 return false; | 668 return false; |
| 670 } | 669 } |
| 671 | 670 |
| 672 } // namespace content | 671 } // namespace content |
| OLD | NEW |