OLD | NEW |
1 // Copyright (c) 2011 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2011 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/renderer/renderer_main_platform_delegate.h" | 5 #include "content/renderer/renderer_main_platform_delegate.h" |
6 | 6 |
7 #include "base/command_line.h" | 7 #include "base/command_line.h" |
8 #include "content/common/seccomp_sandbox.h" | 8 #include "content/common/seccomp_sandbox.h" |
9 #include "content/public/common/content_switches.h" | 9 #include "content/public/common/content_switches.h" |
10 | 10 |
11 RendererMainPlatformDelegate::RendererMainPlatformDelegate( | 11 RendererMainPlatformDelegate::RendererMainPlatformDelegate( |
12 const MainFunctionParams& parameters) | 12 const content::MainFunctionParams& parameters) |
13 : parameters_(parameters) { | 13 : parameters_(parameters) { |
14 } | 14 } |
15 | 15 |
16 RendererMainPlatformDelegate::~RendererMainPlatformDelegate() { | 16 RendererMainPlatformDelegate::~RendererMainPlatformDelegate() { |
17 } | 17 } |
18 | 18 |
19 void RendererMainPlatformDelegate::PlatformInitialize() { | 19 void RendererMainPlatformDelegate::PlatformInitialize() { |
20 } | 20 } |
21 | 21 |
22 void RendererMainPlatformDelegate::PlatformUninitialize() { | 22 void RendererMainPlatformDelegate::PlatformUninitialize() { |
(...skipping 18 matching lines...) Expand all Loading... |
41 if (SeccompSandboxEnabled() && SupportsSeccompSandbox(-1)) | 41 if (SeccompSandboxEnabled() && SupportsSeccompSandbox(-1)) |
42 StartSeccompSandbox(); | 42 StartSeccompSandbox(); |
43 #endif | 43 #endif |
44 return true; | 44 return true; |
45 } | 45 } |
46 | 46 |
47 void RendererMainPlatformDelegate::RunSandboxTests() { | 47 void RendererMainPlatformDelegate::RunSandboxTests() { |
48 // The sandbox is started in the zygote process: zygote_main_linux.cc | 48 // The sandbox is started in the zygote process: zygote_main_linux.cc |
49 // http://code.google.com/p/chromium/wiki/LinuxSUIDSandbox | 49 // http://code.google.com/p/chromium/wiki/LinuxSUIDSandbox |
50 } | 50 } |
OLD | NEW |