| OLD | NEW |
| (Empty) |
| 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 | |
| 3 // found in the LICENSE file. | |
| 4 | |
| 5 #ifndef CHROME_RENDERER_RENDERER_MAIN_PLATFORM_DELEGATE_H_ | |
| 6 #define CHROME_RENDERER_RENDERER_MAIN_PLATFORM_DELEGATE_H_ | |
| 7 #pragma once | |
| 8 | |
| 9 #include "content/common/main_function_params.h" | |
| 10 | |
| 11 class RendererMainPlatformDelegate { | |
| 12 public: | |
| 13 explicit RendererMainPlatformDelegate(const MainFunctionParams& parameters); | |
| 14 ~RendererMainPlatformDelegate(); | |
| 15 | |
| 16 // Called first thing and last thing in the process' lifecycle, i.e. before | |
| 17 // the sandbox is enabled. | |
| 18 void PlatformInitialize(); | |
| 19 void PlatformUninitialize(); | |
| 20 | |
| 21 // Gives us an opportunity to initialize state used for tests before enabling | |
| 22 // the sandbox. | |
| 23 bool InitSandboxTests(bool no_sandbox); | |
| 24 | |
| 25 // Initiate Lockdown, returns true on success. | |
| 26 bool EnableSandbox(); | |
| 27 | |
| 28 // Runs Sandbox tests. | |
| 29 void RunSandboxTests(); | |
| 30 | |
| 31 private: | |
| 32 const MainFunctionParams& parameters_; | |
| 33 #if defined(OS_WIN) | |
| 34 HMODULE sandbox_test_module_; | |
| 35 #endif | |
| 36 | |
| 37 DISALLOW_COPY_AND_ASSIGN(RendererMainPlatformDelegate); | |
| 38 }; | |
| 39 | |
| 40 #endif // CHROME_RENDERER_RENDERER_MAIN_PLATFORM_DELEGATE_H_ | |
| OLD | NEW |