1 // Copyright (c) 2012 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.
5 #ifndef CONTENT_RENDERER_RENDERER_MAIN_PLATFORM_DELEGATE_H_
6 #define CONTENT_RENDERER_RENDERER_MAIN_PLATFORM_DELEGATE_H_
8 #include "build/build_config.h"
14 #include "base/basictypes.h"
15 #include "content/common/content_export.h"
16 #include "content/public/common/main_function_params.h"
26 class CONTENT_EXPORT RendererMainPlatformDelegate
{
28 explicit RendererMainPlatformDelegate(
29 const MainFunctionParams
& parameters
);
30 ~RendererMainPlatformDelegate();
32 // Called first thing and last thing in the process' lifecycle, i.e. before
33 // the sandbox is enabled.
34 void PlatformInitialize();
35 void PlatformUninitialize();
37 // Initiate Lockdown, returns true on success.
41 const MainFunctionParams
& parameters_
;
43 HMODULE sandbox_test_module_
;
44 #elif defined(OS_MACOSX)
45 NSBundle
* sandbox_tests_bundle_
;
48 DISALLOW_COPY_AND_ASSIGN(RendererMainPlatformDelegate
);
51 } // namespace content
53 #endif // CONTENT_RENDERER_RENDERER_MAIN_PLATFORM_DELEGATE_H_