summaryrefslogtreecommitdiffstats
path: root/content/public/app/startup_helper_win.h
diff options
context:
space:
mode:
authorjam@chromium.org <jam@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2011-10-29 03:44:44 +0000
committerjam@chromium.org <jam@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2011-10-29 03:44:44 +0000
commitbadf5cf5f14c65f6c799ef1fec77cde8351339c2 (patch)
tree83690887c035e4b457f00404f126f95ad1a90c06 /content/public/app/startup_helper_win.h
parent8cc9738eff9c169487e8356947d88640659fc497 (diff)
downloadchromium_src-badf5cf5f14c65f6c799ef1fec77cde8351339c2.zip
chromium_src-badf5cf5f14c65f6c799ef1fec77cde8351339c2.tar.gz
chromium_src-badf5cf5f14c65f6c799ef1fec77cde8351339c2.tar.bz2
Expose the sandbox related code through the content API. I did a bit of cleanup while I was doing this.
-got rid of SandboxInitWrapper, since I didn't see a need to expose given that we can just expose sandbox::SandboxInterfaceInfo -got rid of the duplicated code to initialize the broker -since I made MainFunctionParams only have the sandbox struct on Windows, I also made the mac specific auto release pool behind an ifdef as well. It seemed odd to make something so mac specific compile on all platforms to save some #ifdefs. BUG=98716 Review URL: http://codereview.chromium.org/8414020 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@107863 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'content/public/app/startup_helper_win.h')
-rw-r--r--content/public/app/startup_helper_win.h34
1 files changed, 34 insertions, 0 deletions
diff --git a/content/public/app/startup_helper_win.h b/content/public/app/startup_helper_win.h
new file mode 100644
index 0000000..2ed5e3f
--- /dev/null
+++ b/content/public/app/startup_helper_win.h
@@ -0,0 +1,34 @@
+// Copyright (c) 2011 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 CONTENT_PUBLIC_APP_STARTUP_HELPER_WIN_H_
+#define CONTENT_PUBLIC_APP_STARTUP_HELPER_WIN_H_
+#pragma once
+
+class CommandLine;
+
+namespace sandbox {
+struct SandboxInterfaceInfo;
+}
+
+// This file contains functions that any embedder that's not using ContentMain
+// will want to call at startup.
+namespace content {
+
+// Initializes the sandbox code and turns on DEP. Note: This function
+// must be *statically* linked into the executable (along with the static
+// sandbox library); it will not work correctly if it is exported from a
+// DLL and linked in.
+void InitializeSandboxInfo(sandbox::SandboxInterfaceInfo* sandbox_info);
+
+// Register the invalid param handler and pure call handler to be able to
+// notify breakpad when it happens.
+void RegisterInvalidParamHandler();
+
+// Sets up the CRT's debugging macros to output to stdout.
+void SetupCRT(const CommandLine& command_line);
+
+} // namespace content
+
+#endif // CONTENT_PUBLIC_APP_STARTUP_HELPER_WIN_H_