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 <dlfcn.h> | 5 #include <dlfcn.h> |
6 #include <fcntl.h> | 6 #include <fcntl.h> |
7 #include <pthread.h> | 7 #include <pthread.h> |
8 #include <stdio.h> | 8 #include <stdio.h> |
9 #include <sys/socket.h> | 9 #include <sys/socket.h> |
10 #include <sys/stat.h> | 10 #include <sys/stat.h> |
11 #include <sys/types.h> | 11 #include <sys/types.h> |
12 #include <sys/wait.h> | 12 #include <sys/wait.h> |
13 #include <unistd.h> | 13 #include <unistd.h> |
14 | 14 |
15 #include "base/basictypes.h" | 15 #include "base/basictypes.h" |
16 #include "base/command_line.h" | 16 #include "base/command_line.h" |
17 #include "base/eintr_wrapper.h" | |
18 #include "base/file_path.h" | 17 #include "base/file_path.h" |
19 #include "base/hash_tables.h" | 18 #include "base/hash_tables.h" |
20 #include "base/linux_util.h" | 19 #include "base/linux_util.h" |
21 #include "base/memory/scoped_ptr.h" | 20 #include "base/memory/scoped_ptr.h" |
22 #include "base/pickle.h" | 21 #include "base/pickle.h" |
| 22 #include "base/posix/eintr_wrapper.h" |
23 #include "base/posix/unix_domain_socket.h" | 23 #include "base/posix/unix_domain_socket.h" |
24 #include "base/process_util.h" | 24 #include "base/process_util.h" |
25 #include "base/rand_util.h" | 25 #include "base/rand_util.h" |
26 #include "base/sys_info.h" | 26 #include "base/sys_info.h" |
27 #include "build/build_config.h" | 27 #include "build/build_config.h" |
28 #include "crypto/nss_util.h" | 28 #include "crypto/nss_util.h" |
29 #include "content/common/font_config_ipc_linux.h" | 29 #include "content/common/font_config_ipc_linux.h" |
30 #include "content/common/pepper_plugin_registry.h" | 30 #include "content/common/pepper_plugin_registry.h" |
31 #include "content/common/sandbox_linux.h" | 31 #include "content/common/sandbox_linux.h" |
32 #include "content/common/zygote_commands_linux.h" | 32 #include "content/common/zygote_commands_linux.h" |
(...skipping 456 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
489 } | 489 } |
490 | 490 |
491 int sandbox_flags = linux_sandbox->GetStatus(); | 491 int sandbox_flags = linux_sandbox->GetStatus(); |
492 | 492 |
493 Zygote zygote(sandbox_flags, forkdelegate); | 493 Zygote zygote(sandbox_flags, forkdelegate); |
494 // This function call can return multiple times, once per fork(). | 494 // This function call can return multiple times, once per fork(). |
495 return zygote.ProcessRequests(); | 495 return zygote.ProcessRequests(); |
496 } | 496 } |
497 | 497 |
498 } // namespace content | 498 } // namespace content |
OLD | NEW |