Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(271)

Side by Side Diff: content/browser/zygote_host/zygote_host_impl_linux.cc

Issue 286903021: Make SandboxIPCProcess a thread. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Close FDs in ::~SandboxIPCHandler(). Created 6 years, 7 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
OLDNEW
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 541 matching lines...) Expand 10 before | Expand all | Expand 10 after
552 if (status != base::TERMINATION_STATUS_STILL_RUNNING) { 552 if (status != base::TERMINATION_STATUS_STILL_RUNNING) {
553 ZygoteChildDied(handle); 553 ZygoteChildDied(handle);
554 } 554 }
555 return static_cast<base::TerminationStatus>(status); 555 return static_cast<base::TerminationStatus>(status);
556 } 556 }
557 557
558 pid_t ZygoteHostImpl::GetPid() const { 558 pid_t ZygoteHostImpl::GetPid() const {
559 return pid_; 559 return pid_;
560 } 560 }
561 561
562 pid_t ZygoteHostImpl::GetSandboxHelperPid() const {
563 return RenderSandboxHostLinux::GetInstance()->pid();
564 }
565
566 int ZygoteHostImpl::GetSandboxStatus() const { 562 int ZygoteHostImpl::GetSandboxStatus() const {
567 if (have_read_sandbox_status_word_) 563 if (have_read_sandbox_status_word_)
568 return sandbox_status_; 564 return sandbox_status_;
569 return 0; 565 return 0;
570 } 566 }
571 567
572 } // namespace content 568 } // namespace content
OLDNEW
« no previous file with comments | « content/browser/zygote_host/zygote_host_impl_linux.h ('k') | content/public/browser/zygote_host_linux.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698