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

Side by Side Diff: content/public/common/sandboxed_process_launcher_delegate.cc

Issue 1532423003: Have each SandboxedProcessLauncherDelegate maintain a zygote. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Fetch sandbox status Created 4 years, 12 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
OLDNEW
1 // Copyright 2014 The Chromium Authors. All rights reserved. 1 // Copyright 2014 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/public/common/sandboxed_process_launcher_delegate.h" 5 #include "content/public/common/sandboxed_process_launcher_delegate.h"
6 6
7 namespace content { 7 namespace content {
8 8
9 #if defined(OS_WIN) 9 #if defined(OS_WIN)
10 bool SandboxedProcessLauncherDelegate::ShouldLaunchElevated() { 10 bool SandboxedProcessLauncherDelegate::ShouldLaunchElevated() {
11 return false; 11 return false;
12 } 12 }
13 13
14 bool SandboxedProcessLauncherDelegate::ShouldSandbox() { 14 bool SandboxedProcessLauncherDelegate::ShouldSandbox() {
15 return true; 15 return true;
16 } 16 }
17 17
18 bool SandboxedProcessLauncherDelegate::DisableDefaultPolicy() { 18 bool SandboxedProcessLauncherDelegate::DisableDefaultPolicy() {
19 return false; 19 return false;
20 } 20 }
21 21
22 bool SandboxedProcessLauncherDelegate::PreSpawnTarget( 22 bool SandboxedProcessLauncherDelegate::PreSpawnTarget(
23 sandbox::TargetPolicy* policy) { 23 sandbox::TargetPolicy* policy) {
24 return true; 24 return true;
25 } 25 }
26 26
27 #elif(OS_POSIX) 27 #elif(OS_POSIX)
28 bool SandboxedProcessLauncherDelegate::ShouldUseZygote() { 28 ZygoteHandle* SandboxedProcessLauncherDelegate::GetZygote() {
29 return false; 29 return nullptr;
30 } 30 }
31 31
32 base::EnvironmentMap SandboxedProcessLauncherDelegate::GetEnvironment() { 32 base::EnvironmentMap SandboxedProcessLauncherDelegate::GetEnvironment() {
33 return base::EnvironmentMap(); 33 return base::EnvironmentMap();
34 } 34 }
35 #endif 35 #endif
36 36
37 SandboxType SandboxedProcessLauncherDelegate::GetSandboxType() { 37 SandboxType SandboxedProcessLauncherDelegate::GetSandboxType() {
38 return SANDBOX_TYPE_INVALID; 38 return SANDBOX_TYPE_INVALID;
39 } 39 }
40 40
41 } // namespace content 41 } // namespace content
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698