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/browser/zygote_host/zygote_host_impl_linux.h" | 5 #include "content/browser/zygote_host/zygote_host_impl_linux.h" |
6 | 6 |
7 #include <string.h> | 7 #include <string.h> |
8 #include <sys/socket.h> | 8 #include <sys/socket.h> |
9 #include <sys/stat.h> | 9 #include <sys/stat.h> |
10 #include <sys/types.h> | 10 #include <sys/types.h> |
(...skipping 500 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
511 if (status != base::TERMINATION_STATUS_STILL_RUNNING) { | 511 if (status != base::TERMINATION_STATUS_STILL_RUNNING) { |
512 ZygoteChildDied(handle); | 512 ZygoteChildDied(handle); |
513 } | 513 } |
514 return static_cast<base::TerminationStatus>(status); | 514 return static_cast<base::TerminationStatus>(status); |
515 } | 515 } |
516 | 516 |
517 pid_t ZygoteHostImpl::GetPid() const { | 517 pid_t ZygoteHostImpl::GetPid() const { |
518 return pid_; | 518 return pid_; |
519 } | 519 } |
520 | 520 |
521 pid_t ZygoteHostImpl::GetSandboxHelperPid() const { | |
522 return RenderSandboxHostLinux::GetInstance()->pid(); | |
523 } | |
524 | |
525 int ZygoteHostImpl::GetSandboxStatus() const { | 521 int ZygoteHostImpl::GetSandboxStatus() const { |
526 if (have_read_sandbox_status_word_) | 522 if (have_read_sandbox_status_word_) |
527 return sandbox_status_; | 523 return sandbox_status_; |
528 return 0; | 524 return 0; |
529 } | 525 } |
530 | 526 |
531 } // namespace content | 527 } // namespace content |
OLD | NEW |