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 96 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
107 switches::kLoggingLevel, | 107 switches::kLoggingLevel, |
108 switches::kEnableLogging, // Support, e.g., --enable-logging=stderr. | 108 switches::kEnableLogging, // Support, e.g., --enable-logging=stderr. |
109 switches::kV, | 109 switches::kV, |
110 switches::kVModule, | 110 switches::kVModule, |
111 switches::kRegisterPepperPlugins, | 111 switches::kRegisterPepperPlugins, |
112 switches::kDisableSeccompFilterSandbox, | 112 switches::kDisableSeccompFilterSandbox, |
113 | 113 |
114 // Zygote process needs to know what resources to have loaded when it | 114 // Zygote process needs to know what resources to have loaded when it |
115 // becomes a renderer process. | 115 // becomes a renderer process. |
116 switches::kForceDeviceScaleFactor, | 116 switches::kForceDeviceScaleFactor, |
117 switches::kTouchOptimizedUI, | |
118 | 117 |
119 switches::kNoSandbox, | 118 switches::kNoSandbox, |
120 }; | 119 }; |
121 cmd_line.CopySwitchesFrom(browser_command_line, kForwardSwitches, | 120 cmd_line.CopySwitchesFrom(browser_command_line, kForwardSwitches, |
122 arraysize(kForwardSwitches)); | 121 arraysize(kForwardSwitches)); |
123 | 122 |
124 GetContentClient()->browser()->AppendExtraCommandLineSwitches(&cmd_line, -1); | 123 GetContentClient()->browser()->AppendExtraCommandLineSwitches(&cmd_line, -1); |
125 | 124 |
126 sandbox_binary_ = sandbox_cmd.c_str(); | 125 sandbox_binary_ = sandbox_cmd.c_str(); |
127 | 126 |
(...skipping 385 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
513 return RenderSandboxHostLinux::GetInstance()->pid(); | 512 return RenderSandboxHostLinux::GetInstance()->pid(); |
514 } | 513 } |
515 | 514 |
516 int ZygoteHostImpl::GetSandboxStatus() const { | 515 int ZygoteHostImpl::GetSandboxStatus() const { |
517 if (have_read_sandbox_status_word_) | 516 if (have_read_sandbox_status_word_) |
518 return sandbox_status_; | 517 return sandbox_status_; |
519 return 0; | 518 return 0; |
520 } | 519 } |
521 | 520 |
522 } // namespace content | 521 } // namespace content |
OLD | NEW |