summaryrefslogtreecommitdiffstats
path: root/chrome/renderer/renderer_main_platform_delegate.h
diff options
context:
space:
mode:
authorjeremy@chromium.org <jeremy@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2009-02-04 20:32:54 +0000
committerjeremy@chromium.org <jeremy@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2009-02-04 20:32:54 +0000
commit0bc2a57b165755fe1562140b55ecbbd2d9b98360 (patch)
treec28aa123900d2a20ef1f7feb529224ed53f94c05 /chrome/renderer/renderer_main_platform_delegate.h
parentf91cb991c81afccc52824d369973098398c5ce31 (diff)
downloadchromium_src-0bc2a57b165755fe1562140b55ecbbd2d9b98360.zip
chromium_src-0bc2a57b165755fe1562140b55ecbbd2d9b98360.tar.gz
chromium_src-0bc2a57b165755fe1562140b55ecbbd2d9b98360.tar.bz2
Recommit "Make chrome/renderer/render_main.cc cross-platform + OS X bringup."
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@9168 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'chrome/renderer/renderer_main_platform_delegate.h')
-rwxr-xr-xchrome/renderer/renderer_main_platform_delegate.h39
1 files changed, 39 insertions, 0 deletions
diff --git a/chrome/renderer/renderer_main_platform_delegate.h b/chrome/renderer/renderer_main_platform_delegate.h
new file mode 100755
index 0000000..8f1e453
--- /dev/null
+++ b/chrome/renderer/renderer_main_platform_delegate.h
@@ -0,0 +1,39 @@
+// Copyright (c) 2009 The Chromium Authors. All rights reserved.
+// Use of this source code is governed by a BSD-style license that can be
+// found in the LICENSE file.
+
+#ifndef CHROME_RENDERER_RENDERER_PLATFORM_DELEGATE_H_
+#define CHROME_RENDERER_RENDERER_PLATFORM_DELEGATE_H_
+
+#include "chrome/common/main_function_params.h"
+
+class RendererMainPlatformDelegate {
+ public:
+ RendererMainPlatformDelegate(const MainFunctionParams& parameters);
+ ~RendererMainPlatformDelegate();
+
+ // Called first thing and last thing in the process' lifecycle, i.e. before
+ // the sandbox is enabled.
+ void PlatformInitialize();
+ void PlatformUninitialize();
+
+ // Gives us an opportunity to initialize state used for tests before enabling
+ // the sandbox.
+ bool InitSandboxTests(bool no_sandbox);
+
+ // Initiate Lockdown, returns true on success.
+ bool EnableSandbox();
+
+ // Runs Sandbox tests.
+ void RunSandboxTests();
+
+ private:
+ const MainFunctionParams& parameters_;
+#if defined(OS_WIN)
+ HMODULE sandbox_test_module_;
+#endif
+
+ DISALLOW_COPY_AND_ASSIGN(RendererMainPlatformDelegate);
+};
+
+#endif // CHROME_RENDERER_RENDERER_PLATFORM_DELEGATE_H_