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 "components/nacl/zygote/nacl_fork_delegate_linux.h" | 5 #include "components/nacl/zygote/nacl_fork_delegate_linux.h" |
6 | 6 |
7 #include <signal.h> | 7 #include <signal.h> |
| 8 #include <stddef.h> |
8 #include <stdlib.h> | 9 #include <stdlib.h> |
9 #include <sys/resource.h> | 10 #include <sys/resource.h> |
10 #include <sys/socket.h> | 11 #include <sys/socket.h> |
11 | 12 |
12 #include <set> | 13 #include <set> |
13 | 14 |
14 #include "base/basictypes.h" | |
15 #include "base/command_line.h" | 15 #include "base/command_line.h" |
16 #include "base/cpu.h" | 16 #include "base/cpu.h" |
17 #include "base/files/file_path.h" | 17 #include "base/files/file_path.h" |
18 #include "base/files/scoped_file.h" | 18 #include "base/files/scoped_file.h" |
19 #include "base/logging.h" | 19 #include "base/logging.h" |
| 20 #include "base/macros.h" |
20 #include "base/memory/scoped_ptr.h" | 21 #include "base/memory/scoped_ptr.h" |
21 #include "base/memory/scoped_vector.h" | 22 #include "base/memory/scoped_vector.h" |
22 #include "base/path_service.h" | 23 #include "base/path_service.h" |
23 #include "base/pickle.h" | 24 #include "base/pickle.h" |
24 #include "base/posix/eintr_wrapper.h" | 25 #include "base/posix/eintr_wrapper.h" |
25 #include "base/posix/global_descriptors.h" | 26 #include "base/posix/global_descriptors.h" |
26 #include "base/posix/unix_domain_socket_linux.h" | 27 #include "base/posix/unix_domain_socket_linux.h" |
27 #include "base/process/kill.h" | 28 #include "base/process/kill.h" |
28 #include "base/process/launch.h" | 29 #include "base/process/launch.h" |
29 #include "base/strings/string_split.h" | 30 #include "base/strings/string_split.h" |
(...skipping 426 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
456 pass_through_vars.push_back(kNaClVerbosity); | 457 pass_through_vars.push_back(kNaClVerbosity); |
457 pass_through_vars.push_back(sandbox::kSandboxEnvironmentApiRequest); | 458 pass_through_vars.push_back(sandbox::kSandboxEnvironmentApiRequest); |
458 for (size_t i = 0; i < pass_through_vars.size(); ++i) { | 459 for (size_t i = 0; i < pass_through_vars.size(); ++i) { |
459 std::string temp; | 460 std::string temp; |
460 if (env->GetVar(pass_through_vars[i].c_str(), &temp)) | 461 if (env->GetVar(pass_through_vars[i].c_str(), &temp)) |
461 options->environ[pass_through_vars[i]] = temp; | 462 options->environ[pass_through_vars[i]] = temp; |
462 } | 463 } |
463 } | 464 } |
464 | 465 |
465 } // namespace nacl | 466 } // namespace nacl |
OLD | NEW |