| 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_main.h" | 5 #include "content/zygote/zygote_main.h" |
| 6 | 6 |
| 7 #include <dlfcn.h> | 7 #include <dlfcn.h> |
| 8 #include <errno.h> | 8 #include <errno.h> |
| 9 #include <fcntl.h> | 9 #include <fcntl.h> |
| 10 #include <pthread.h> | 10 #include <pthread.h> |
| (...skipping 11 matching lines...) Expand all Loading... |
| 22 #include "base/linux_util.h" | 22 #include "base/linux_util.h" |
| 23 #include "base/native_library.h" | 23 #include "base/native_library.h" |
| 24 #include "base/pickle.h" | 24 #include "base/pickle.h" |
| 25 #include "base/posix/unix_domain_socket_linux.h" | 25 #include "base/posix/unix_domain_socket_linux.h" |
| 26 #include "base/rand_util.h" | 26 #include "base/rand_util.h" |
| 27 #include "base/sys_info.h" | 27 #include "base/sys_info.h" |
| 28 #include "build/build_config.h" | 28 #include "build/build_config.h" |
| 29 #include "content/common/child_process_sandbox_support_impl_linux.h" | 29 #include "content/common/child_process_sandbox_support_impl_linux.h" |
| 30 #include "content/common/font_config_ipc_linux.h" | 30 #include "content/common/font_config_ipc_linux.h" |
| 31 #include "content/common/pepper_plugin_list.h" | 31 #include "content/common/pepper_plugin_list.h" |
| 32 #include "content/common/sandbox_linux.h" | 32 #include "content/common/sandbox_linux/sandbox_linux.h" |
| 33 #include "content/common/zygote_commands_linux.h" | 33 #include "content/common/zygote_commands_linux.h" |
| 34 #include "content/public/common/content_switches.h" | 34 #include "content/public/common/content_switches.h" |
| 35 #include "content/public/common/main_function_params.h" | 35 #include "content/public/common/main_function_params.h" |
| 36 #include "content/public/common/pepper_plugin_info.h" | 36 #include "content/public/common/pepper_plugin_info.h" |
| 37 #include "content/public/common/sandbox_linux.h" | 37 #include "content/public/common/sandbox_linux.h" |
| 38 #include "content/public/common/zygote_fork_delegate_linux.h" | 38 #include "content/public/common/zygote_fork_delegate_linux.h" |
| 39 #include "content/zygote/zygote_linux.h" | 39 #include "content/zygote/zygote_linux.h" |
| 40 #include "crypto/nss_util.h" | 40 #include "crypto/nss_util.h" |
| 41 #include "sandbox/linux/services/libc_urandom_override.h" | 41 #include "sandbox/linux/services/libc_urandom_override.h" |
| 42 #include "sandbox/linux/suid/client/setuid_sandbox_client.h" | 42 #include "sandbox/linux/suid/client/setuid_sandbox_client.h" |
| (...skipping 392 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 435 } | 435 } |
| 436 | 436 |
| 437 int sandbox_flags = linux_sandbox->GetStatus(); | 437 int sandbox_flags = linux_sandbox->GetStatus(); |
| 438 | 438 |
| 439 Zygote zygote(sandbox_flags, forkdelegate); | 439 Zygote zygote(sandbox_flags, forkdelegate); |
| 440 // This function call can return multiple times, once per fork(). | 440 // This function call can return multiple times, once per fork(). |
| 441 return zygote.ProcessRequests(); | 441 return zygote.ProcessRequests(); |
| 442 } | 442 } |
| 443 | 443 |
| 444 } // namespace content | 444 } // namespace content |
| OLD | NEW |