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 <sys/socket.h> | 7 #include <sys/socket.h> |
8 #include <sys/stat.h> | 8 #include <sys/stat.h> |
9 #include <sys/types.h> | 9 #include <sys/types.h> |
10 #include <unistd.h> | 10 #include <unistd.h> |
(...skipping 19 matching lines...) Expand all Loading... |
30 #include "base/time/time.h" | 30 #include "base/time/time.h" |
31 #include "content/browser/renderer_host/render_sandbox_host_linux.h" | 31 #include "content/browser/renderer_host/render_sandbox_host_linux.h" |
32 #include "content/common/child_process_sandbox_support_impl_linux.h" | 32 #include "content/common/child_process_sandbox_support_impl_linux.h" |
33 #include "content/common/zygote_commands_linux.h" | 33 #include "content/common/zygote_commands_linux.h" |
34 #include "content/public/browser/content_browser_client.h" | 34 #include "content/public/browser/content_browser_client.h" |
35 #include "content/public/common/content_switches.h" | 35 #include "content/public/common/content_switches.h" |
36 #include "content/public/common/result_codes.h" | 36 #include "content/public/common/result_codes.h" |
37 #include "sandbox/linux/suid/client/setuid_sandbox_client.h" | 37 #include "sandbox/linux/suid/client/setuid_sandbox_client.h" |
38 #include "sandbox/linux/suid/common/sandbox.h" | 38 #include "sandbox/linux/suid/common/sandbox.h" |
39 #include "ui/base/ui_base_switches.h" | 39 #include "ui/base/ui_base_switches.h" |
| 40 #include "ui/gfx/switches.h" |
40 | 41 |
41 #if defined(USE_TCMALLOC) | 42 #if defined(USE_TCMALLOC) |
42 #include "third_party/tcmalloc/chromium/src/gperftools/heap-profiler.h" | 43 #include "third_party/tcmalloc/chromium/src/gperftools/heap-profiler.h" |
43 #endif | 44 #endif |
44 | 45 |
45 namespace content { | 46 namespace content { |
46 | 47 |
47 // static | 48 // static |
48 ZygoteHost* ZygoteHost::GetInstance() { | 49 ZygoteHost* ZygoteHost::GetInstance() { |
49 return ZygoteHostImpl::GetInstance(); | 50 return ZygoteHostImpl::GetInstance(); |
(...skipping 456 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
506 return RenderSandboxHostLinux::GetInstance()->pid(); | 507 return RenderSandboxHostLinux::GetInstance()->pid(); |
507 } | 508 } |
508 | 509 |
509 int ZygoteHostImpl::GetSandboxStatus() const { | 510 int ZygoteHostImpl::GetSandboxStatus() const { |
510 if (have_read_sandbox_status_word_) | 511 if (have_read_sandbox_status_word_) |
511 return sandbox_status_; | 512 return sandbox_status_; |
512 return 0; | 513 return 0; |
513 } | 514 } |
514 | 515 |
515 } // namespace content | 516 } // namespace content |
OLD | NEW |