| 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 #import <Cocoa/Cocoa.h> | 7 #import <Cocoa/Cocoa.h> |
| 8 | 8 |
| 9 #import "base/chrome_application_mac.h" | |
| 10 #include "base/command_line.h" | 9 #include "base/command_line.h" |
| 10 #import "chrome/common/chrome_application_mac.h" |
| 11 #include "chrome/common/chrome_switches.h" | 11 #include "chrome/common/chrome_switches.h" |
| 12 #include "chrome/common/sandbox_mac.h" | 12 #include "chrome/common/sandbox_mac.h" |
| 13 #include "third_party/WebKit/WebKit/mac/WebCoreSupport/WebSystemInterface.h" | 13 #include "third_party/WebKit/WebKit/mac/WebCoreSupport/WebSystemInterface.h" |
| 14 | 14 |
| 15 RendererMainPlatformDelegate::RendererMainPlatformDelegate( | 15 RendererMainPlatformDelegate::RendererMainPlatformDelegate( |
| 16 const MainFunctionParams& parameters) | 16 const MainFunctionParams& parameters) |
| 17 : parameters_(parameters) { | 17 : parameters_(parameters) { |
| 18 } | 18 } |
| 19 | 19 |
| 20 RendererMainPlatformDelegate::~RendererMainPlatformDelegate() { | 20 RendererMainPlatformDelegate::~RendererMainPlatformDelegate() { |
| (...skipping 28 matching lines...) Expand all Loading... |
| 49 bool RendererMainPlatformDelegate::EnableSandbox() { | 49 bool RendererMainPlatformDelegate::EnableSandbox() { |
| 50 CommandLine* parsed_command_line = CommandLine::ForCurrentProcess(); | 50 CommandLine* parsed_command_line = CommandLine::ForCurrentProcess(); |
| 51 SandboxInitWrapper sandbox_wrapper; | 51 SandboxInitWrapper sandbox_wrapper; |
| 52 return sandbox_wrapper.InitializeSandbox(*parsed_command_line, | 52 return sandbox_wrapper.InitializeSandbox(*parsed_command_line, |
| 53 switches::kRendererProcess); | 53 switches::kRendererProcess); |
| 54 } | 54 } |
| 55 | 55 |
| 56 void RendererMainPlatformDelegate::RunSandboxTests() { | 56 void RendererMainPlatformDelegate::RunSandboxTests() { |
| 57 // TODO(port): Run sandbox unit test here. | 57 // TODO(port): Run sandbox unit test here. |
| 58 } | 58 } |
| OLD | NEW |