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