startup_helper_win.h revision 5821806d5e7f356e8fa4b058a389a808ea183019
16e8cce623b6e4fe0c9e4af605d675dd9d0338c38Torne (Richard Coles)// Copyright (c) 2012 The Chromium Authors. All rights reserved.
26e8cce623b6e4fe0c9e4af605d675dd9d0338c38Torne (Richard Coles)// Use of this source code is governed by a BSD-style license that can be
36e8cce623b6e4fe0c9e4af605d675dd9d0338c38Torne (Richard Coles)// found in the LICENSE file.
46e8cce623b6e4fe0c9e4af605d675dd9d0338c38Torne (Richard Coles)
56e8cce623b6e4fe0c9e4af605d675dd9d0338c38Torne (Richard Coles)#ifndef CONTENT_PUBLIC_APP_STARTUP_HELPER_WIN_H_
66e8cce623b6e4fe0c9e4af605d675dd9d0338c38Torne (Richard Coles)#define CONTENT_PUBLIC_APP_STARTUP_HELPER_WIN_H_
76e8cce623b6e4fe0c9e4af605d675dd9d0338c38Torne (Richard Coles)
86e8cce623b6e4fe0c9e4af605d675dd9d0338c38Torne (Richard Coles)class CommandLine;
96e8cce623b6e4fe0c9e4af605d675dd9d0338c38Torne (Richard Coles)
106e8cce623b6e4fe0c9e4af605d675dd9d0338c38Torne (Richard Coles)namespace sandbox {
116e8cce623b6e4fe0c9e4af605d675dd9d0338c38Torne (Richard Coles)struct SandboxInterfaceInfo;
126e8cce623b6e4fe0c9e4af605d675dd9d0338c38Torne (Richard Coles)}
136e8cce623b6e4fe0c9e4af605d675dd9d0338c38Torne (Richard Coles)
146e8cce623b6e4fe0c9e4af605d675dd9d0338c38Torne (Richard Coles)// This file contains functions that any embedder that's not using ContentMain
15// will want to call at startup.
16// NOTE: we never want to CONTENT_EXPORT these functions, they must run in the
17// same module that calls them.
18namespace content {
19
20// Initializes the sandbox code and turns on DEP. Note: This function
21// must be *statically* linked into the executable (along with the static
22// sandbox library); it will not work correctly if it is exported from a
23// DLL and linked in.
24void InitializeSandboxInfo(sandbox::SandboxInterfaceInfo* sandbox_info);
25
26// Register the invalid param handler and pure call handler to be able to
27// notify breakpad when it happens.
28void RegisterInvalidParamHandler();
29
30// Sets up the CRT's debugging macros to output to stdout.
31void SetupCRT(const CommandLine& command_line);
32
33}  // namespace content
34
35#endif  // CONTENT_PUBLIC_APP_STARTUP_HELPER_WIN_H_
36